mirror of
https://github.com/penpot/penpot.git
synced 2025-07-15 08:45:13 +02:00
✨ Simplify internal executor module
This commit is contained in:
parent
1bd32327e5
commit
c64e14859c
3 changed files with 43 additions and 53 deletions
|
@ -11,7 +11,6 @@
|
|||
[app.common.exceptions :as ex]
|
||||
[app.db :as-alias db]
|
||||
[app.storage :as-alias sto]
|
||||
[app.worker :as-alias wrk]
|
||||
[buddy.core.codecs :as bc]
|
||||
[buddy.core.hash :as bh]
|
||||
[clojure.java.io :as jio]
|
||||
|
@ -201,7 +200,7 @@
|
|||
(str "blake2b:" result)))
|
||||
|
||||
(defn resolve-backend
|
||||
[{:keys [::db/pool ::wrk/executor] :as storage} backend-id]
|
||||
[{:keys [::db/pool] :as storage} backend-id]
|
||||
(let [backend (get-in storage [::sto/backends backend-id])]
|
||||
(when-not backend
|
||||
(ex/raise :type :internal
|
||||
|
@ -209,7 +208,6 @@
|
|||
:hint (dm/fmt "backend '%' not configured" backend-id)))
|
||||
(-> backend
|
||||
(assoc ::sto/id backend-id)
|
||||
(assoc ::wrk/executor executor)
|
||||
(assoc ::db/pool pool))))
|
||||
|
||||
(defrecord StorageObject [id size created-at expired-at touched-at backend])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue