mirror of
https://github.com/penpot/penpot.git
synced 2025-07-31 18:08:31 +02:00
✨ Add minor change to srepl module options
Replace unqualified attrs with fully qualified
This commit is contained in:
parent
0c48f76911
commit
4b4f78b4cc
2 changed files with 6 additions and 7 deletions
|
@ -50,15 +50,14 @@
|
|||
|
||||
(defmethod ig/pre-init-spec ::server
|
||||
[_]
|
||||
(s/keys :req [::flag]
|
||||
:req-un [::port ::host]))
|
||||
(s/keys :req [::flag ::host ::port]))
|
||||
|
||||
(defmethod ig/prep-key ::server
|
||||
[[type _] cfg]
|
||||
(assoc cfg ::flag (keyword (str (name type) "-server"))))
|
||||
|
||||
(defmethod ig/init-key ::server
|
||||
[[type _] {:keys [::flag port host] :as cfg}]
|
||||
[[type _] {:keys [::flag ::port ::host] :as cfg}]
|
||||
(when (contains? cf/flags flag)
|
||||
(let [accept (case type
|
||||
::prepl 'app.srepl/json-repl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue