mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 01:36:39 +02:00
⬆️ Update promesa library to 10.0.570
This commit is contained in:
parent
8bad9d8340
commit
861328af3e
4 changed files with 29 additions and 30 deletions
|
@ -254,7 +254,7 @@
|
||||||
"Submit audit event to the collector."
|
"Submit audit event to the collector."
|
||||||
[{:keys [::wrk/executor ::db/pool]} params]
|
[{:keys [::wrk/executor ::db/pool]} params]
|
||||||
(->> (px/submit! executor (partial persist-event! pool (d/without-nils params)))
|
(->> (px/submit! executor (partial persist-event! pool (d/without-nils params)))
|
||||||
(p/err (fn [cause]
|
(p/merr (fn [cause]
|
||||||
(l/error :hint "audit: unexpected error processing event" :cause cause)
|
(l/error :hint "audit: unexpected error processing event" :cause cause)
|
||||||
(p/resolved nil)))))
|
(p/resolved nil)))))
|
||||||
|
|
||||||
|
|
|
@ -360,7 +360,7 @@
|
||||||
^ScriptOutputType ScriptOutputType/MULTI
|
^ScriptOutputType ScriptOutputType/MULTI
|
||||||
^"[Ljava.lang.String;" keys
|
^"[Ljava.lang.String;" keys
|
||||||
^"[Ljava.lang.String;" vals)
|
^"[Ljava.lang.String;" vals)
|
||||||
(p/map (fn [result]
|
(p/fmap (fn [result]
|
||||||
(let [elapsed (tpoint)]
|
(let [elapsed (tpoint)]
|
||||||
(mtx/run! metrics {:id :redis-eval-timing
|
(mtx/run! metrics {:id :redis-eval-timing
|
||||||
:labels [(name sname)]
|
:labels [(name sname)]
|
||||||
|
@ -371,7 +371,7 @@
|
||||||
:params (str/join "," (::rscript/vals script))
|
:params (str/join "," (::rscript/vals script))
|
||||||
:elapsed (dt/format-duration elapsed))
|
:elapsed (dt/format-duration elapsed))
|
||||||
result)))
|
result)))
|
||||||
(p/error on-error))))
|
(p/merr on-error))))
|
||||||
|
|
||||||
(read-script []
|
(read-script []
|
||||||
(-> script ::rscript/path io/resource slurp))
|
(-> script ::rscript/path io/resource slurp))
|
||||||
|
|
|
@ -39,9 +39,8 @@
|
||||||
|
|
||||||
(defn invoke!
|
(defn invoke!
|
||||||
[limiter f]
|
[limiter f]
|
||||||
(p/handle
|
(->> (px/submit! limiter f)
|
||||||
(px/submit! limiter f)
|
(p/hcat (fn [result cause]
|
||||||
(fn [result cause]
|
|
||||||
(cond
|
(cond
|
||||||
(capacity-exception? cause)
|
(capacity-exception? cause)
|
||||||
(p/rejected
|
(p/rejected
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
(p/rejected cause)
|
(p/rejected cause)
|
||||||
|
|
||||||
:else
|
:else
|
||||||
(p/resolved result)))))
|
(p/resolved result))))))
|
||||||
|
|
||||||
(defn- create-limiter
|
(defn- create-limiter
|
||||||
[{:keys [executor metrics concurrency queue-size bkey skey]}]
|
[{:keys [executor metrics concurrency queue-size bkey skey]}]
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
com.cognitect/transit-cljs {:mvn/version "0.8.280"}
|
com.cognitect/transit-cljs {:mvn/version "0.8.280"}
|
||||||
java-http-clj/java-http-clj {:mvn/version "0.4.3"}
|
java-http-clj/java-http-clj {:mvn/version "0.4.3"}
|
||||||
|
|
||||||
funcool/promesa {:mvn/version "9.2.542"}
|
funcool/promesa {:mvn/version "10.0.570"}
|
||||||
funcool/cuerdas {:mvn/version "2022.06.16-403"}
|
funcool/cuerdas {:mvn/version "2022.06.16-403"}
|
||||||
|
|
||||||
lambdaisland/uri {:mvn/version "1.13.95"
|
lambdaisland/uri {:mvn/version "1.13.95"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue