🔥 Remove unnecesary call to px/wrap-bindings

This commit is contained in:
Andrey Antukh 2023-12-04 13:18:43 +01:00 committed by Andrés Moya
parent 1d9481ceb7
commit 2e4a5aee61
2 changed files with 5 additions and 9 deletions

View file

@ -47,7 +47,8 @@
[cuerdas.core :as str]
[datoteka.io :as io]
[promesa.exec :as px]
[promesa.exec.semaphore :as ps]))
[promesa.exec.semaphore :as ps]
[promesa.util :as pu]))
(def ^:dynamic *system* nil)
(def ^:dynamic *stats* nil)
@ -698,10 +699,7 @@
(l/trc :hint "graphic processed"
:file-id (str (:id fdata))
:media-id (str (:id mobj))
:elapsed (dt/format-duration (tp1)))))))
process (px/wrap-bindings process)]
:elapsed (dt/format-duration (tp1)))))))]
(try
(->> (d/zip media-group grid)
(map (fn [[mobj position]]
@ -717,7 +715,7 @@
fdata))
fdata))
(finally
(.close ^java.lang.AutoCloseable executor)))))
(pu/close! executor)))))
(defn- migrate-graphics
[fdata]