瀏覽代碼

fn rename

Tienson Qin 2 年之前
父節點
當前提交
085d9b33ec
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/frontend/fs/sync.cljs

+ 2 - 2
src/main/frontend/fs/sync.cljs

@@ -2976,7 +2976,7 @@
 
     (reset! current-sm-graph-uuid nil)))
 
-(defn <sync-local->remote []
+(defn <sync-local->remote-now []
   (go
     (when-let [_sm ^SyncManager (state/get-file-sync-manager (state/get-current-file-sync-graph-uuid))]
       (offer! immediately-local->remote-chan true))))
@@ -3003,7 +3003,7 @@
                    (go
                      ;; Wait for file watcher events
                      (<! (timeout 2000))
-                     (<! (<sync-local->remote))
+                     (<! (<sync-local->remote-now))
 
                      (p/let [task-id (.beforeExit ^js BackgroundTask
                                                  (fn []