Skip to content

Commit

Permalink
fix(sync): add fake size for the fake event
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Nov 25, 2022
1 parent e638afb commit f72fb7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/frontend/fs/sync.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,9 @@
;; add 2 simulated file-watcher events
(>! ch (->FileChangeEvent "unlink" repo-dir (:old-path rename-event*) nil nil))
(>! ch (->FileChangeEvent "add" repo-dir (:new-path rename-event*)
{:mtime (tc/to-long (t/now))} "fake-checksum"))
{:mtime (tc/to-long (t/now))
:size 1 ; add a fake size
} "fake-checksum"))
(recur))
local-change
(cond
Expand Down

0 comments on commit f72fb7b

Please sign in to comment.