fix: <sync-start returns a channel

This commit is contained in:
Tienson Qin
2022-11-06 20:12:39 +08:00
parent 530f683ac0
commit 865ba9c69c
4 changed files with 10 additions and 10 deletions

View File

@@ -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)))))))