mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 22:16:38 +02:00
🔥 Remove executor internal dependency on storage module
This commit is contained in:
parent
97f8315cd0
commit
da7f88c7ca
2 changed files with 1 additions and 3 deletions
|
@ -439,7 +439,6 @@
|
||||||
|
|
||||||
::sto/storage
|
::sto/storage
|
||||||
{::db/pool (ig/ref ::db/pool)
|
{::db/pool (ig/ref ::db/pool)
|
||||||
::wrk/executor (ig/ref ::wrk/executor)
|
|
||||||
::sto/backends
|
::sto/backends
|
||||||
{:assets-s3 (ig/ref [::assets :app.storage.s3/backend])
|
{:assets-s3 (ig/ref [::assets :app.storage.s3/backend])
|
||||||
:assets-fs (ig/ref [::assets :app.storage.fs/backend])}}
|
:assets-fs (ig/ref [::assets :app.storage.fs/backend])}}
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
[app.storage.impl :as impl]
|
[app.storage.impl :as impl]
|
||||||
[app.storage.s3 :as ss3]
|
[app.storage.s3 :as ss3]
|
||||||
[app.util.time :as dt]
|
[app.util.time :as dt]
|
||||||
[app.worker :as wrk]
|
|
||||||
[clojure.spec.alpha :as s]
|
[clojure.spec.alpha :as s]
|
||||||
[datoteka.fs :as fs]
|
[datoteka.fs :as fs]
|
||||||
[integrant.core :as ig]
|
[integrant.core :as ig]
|
||||||
|
@ -40,7 +39,7 @@
|
||||||
:fs ::sfs/backend))))
|
:fs ::sfs/backend))))
|
||||||
|
|
||||||
(defmethod ig/pre-init-spec ::storage [_]
|
(defmethod ig/pre-init-spec ::storage [_]
|
||||||
(s/keys :req [::db/pool ::wrk/executor ::backends]))
|
(s/keys :req [::db/pool ::backends]))
|
||||||
|
|
||||||
(defmethod ig/init-key ::storage
|
(defmethod ig/init-key ::storage
|
||||||
[_ {:keys [::backends ::db/pool] :as cfg}]
|
[_ {:keys [::backends ::db/pool] :as cfg}]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue