mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 22:25:01 +00:00
fix compile warnings
This commit is contained in:
@@ -88,7 +88,7 @@
|
||||
(swap! *sse-clients disj res))))
|
||||
|
||||
(defn- <invoke!
|
||||
[proxy method direct-pass? args]
|
||||
[^js proxy method direct-pass? args]
|
||||
(let [args' (if direct-pass?
|
||||
(into-array (or args []))
|
||||
(if (string? args)
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
[data-dir _sqlite pool-name]
|
||||
(p/let [repo-dir-path (repo-dir data-dir pool-name)
|
||||
_ (ensure-dir! repo-dir-path)
|
||||
pool (js-obj)]
|
||||
^js pool (js-obj)]
|
||||
(set! (.-repoDir pool) repo-dir-path)
|
||||
(set! (.-getCapacity pool) (fn [] 1))
|
||||
(set! (.-pauseVfs pool) (fn [] nil))
|
||||
@@ -146,7 +146,7 @@
|
||||
(fs/writeFile full-path (->buffer data)))))
|
||||
|
||||
(defn- remove-vfs!
|
||||
[pool]
|
||||
[^js pool]
|
||||
(when pool
|
||||
(fs/rm (.-repoDir pool) #js {:recursive true :force true})))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user