瀏覽代碼

enhance: remove d/datom call

Tienson Qin 1 月之前
父節點
當前提交
e1f7d85645
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/worker/pipeline.cljs

+ 1 - 1
src/main/frontend/worker/pipeline.cljs

@@ -344,7 +344,7 @@
                                        (butlast same-v-datoms)))
                              (map vec)
                              set)]
-    (map #(apply d/datom %) (remove conflict-datoms (map vec datoms)))))
+    (remove (fn [datom] (conflict-datoms (vec datom))) datoms)))
 
 (defn transact-pipeline
   "Compute extra tx-data and block/refs, should ensure it's a pure function and