mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 18:36:43 +00:00
fix: <sync-start returns a channel
This commit is contained in:
@@ -67,7 +67,7 @@
|
||||
(defn- file-sync-restart! []
|
||||
(async/go (async/<! (p->c (persist-var/load-vars)))
|
||||
(async/<! (sync/<sync-stop))
|
||||
(some-> (sync/sync-start) async/<!)))
|
||||
(some-> (sync/<sync-start) async/<!)))
|
||||
|
||||
(defn- file-sync-stop! []
|
||||
(async/go (async/<! (p->c (persist-var/load-vars)))
|
||||
@@ -93,7 +93,7 @@
|
||||
(vector? (:sync-meta %))
|
||||
(util/uuid-string? (first (:sync-meta %)))
|
||||
(util/uuid-string? (second (:sync-meta %)))) repos)
|
||||
(sync/sync-start)))))
|
||||
(sync/<sync-start)))))
|
||||
(ui-handler/re-render-root!)
|
||||
(file-sync/maybe-onboarding-show status)))))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user