0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-18 18:51:29 -05:00

🐛 Forward var bindings on climit submit operation

This commit is contained in:
Andrey Antukh 2023-03-16 19:40:28 +01:00
parent 69c8a89dd2
commit 9173c73eca

View file

@ -168,7 +168,7 @@
(defn submit!
[{:keys [::id ::cache ::wrk/executor ::mtx/metrics]} f]
(let [f (partial px/submit! executor f)]
(let [f (partial px/submit! executor (px/wrap-bindings f))]
(if (and cache id)
(p/await! (invoke! cache metrics id nil f))
(p/await! (f)))))