fix: keeping ask for permissions for nfs graphs

Also, simplify the code a bit.
This commit is contained in:
Tienson Qin
2021-01-28 15:44:20 +08:00
parent 1a9a7e5ec8
commit 5c30e0b47e
13 changed files with 52 additions and 173 deletions

View File

@@ -228,8 +228,7 @@
(db/set-file-content! repo path content))))
(when-let [chan (state/get-file-write-chan)]
(let [chan-callback
(:chan-callback opts)]
(let [chan-callback (:chan-callback opts)]
(async/put! chan [repo files opts file->content])
(when chan-callback
(chan-callback))))))