Skip to content

Commit 21fc788

Browse files
committed
fix: store
1 parent 6da8be3 commit 21fc788

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/datascript/core.cljc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -520,13 +520,13 @@
520520
(let [r (with db tx-data tx-meta')]
521521
(reset! *report r)
522522
(:db-after r))))
523-
(when skip-store?
524-
(when-some [storage (storage/storage @conn)]
525-
(let [{db :db-after
526-
datoms :tx-data} @*report
527-
settings (set/settings (:eavt db))
528-
*tx-tail (:tx-tail (meta conn))
529-
tx-tail' (swap! *tx-tail conj datoms)]
523+
(when-some [storage (storage/storage @conn)]
524+
(let [{db :db-after
525+
datoms :tx-data} @*report
526+
settings (set/settings (:eavt db))
527+
*tx-tail (:tx-tail (meta conn))
528+
tx-tail' (swap! *tx-tail conj datoms)]
529+
(when-not skip-store?
530530
(if (> (transduce (map count) + 0 tx-tail') (:branching-factor settings))
531531
;; overflow tail
532532
(do

0 commit comments

Comments
 (0)