mirror of
https://github.com/penpot/penpot.git
synced 2025-01-25 07:58:49 -05:00
🐛 Fix incorrect order of update-index operations
This commit is contained in:
parent
edfc47d3de
commit
b635427f91
1 changed files with 9 additions and 3 deletions
|
@ -205,15 +205,21 @@
|
||||||
(update-status :pending)))
|
(update-status :pending)))
|
||||||
(rx/take-until stoper-s))
|
(rx/take-until stoper-s))
|
||||||
|
|
||||||
|
(->> commits-s
|
||||||
|
(rx/buffer-time 200)
|
||||||
|
(rx/mapcat merge-commit)
|
||||||
|
(rx/map dch/update-indexes)
|
||||||
|
(rx/take-until stoper-s)
|
||||||
|
(rx/finalize (fn []
|
||||||
|
(log/debug :hint "finalize persistence: changes watcher [index]"))))
|
||||||
|
|
||||||
;; Here we watch for local commits, buffer them in a small
|
;; Here we watch for local commits, buffer them in a small
|
||||||
;; chunks (very near in time commits) and append them to the
|
;; chunks (very near in time commits) and append them to the
|
||||||
;; persistence queue
|
;; persistence queue
|
||||||
(->> commits-s
|
(->> commits-s
|
||||||
(rx/buffer-until notifier-s)
|
(rx/buffer-until notifier-s)
|
||||||
(rx/mapcat merge-commit)
|
(rx/mapcat merge-commit)
|
||||||
(rx/mapcat (fn [commit]
|
(rx/map append-commit)
|
||||||
(rx/of (append-commit commit)
|
|
||||||
(dch/update-indexes commit))))
|
|
||||||
(rx/take-until (rx/delay 100 stoper-s))
|
(rx/take-until (rx/delay 100 stoper-s))
|
||||||
(rx/finalize (fn []
|
(rx/finalize (fn []
|
||||||
(log/debug :hint "finalize persistence: changes watcher"))))
|
(log/debug :hint "finalize persistence: changes watcher"))))
|
||||||
|
|
Loading…
Add table
Reference in a new issue