set of keys for restart listener "on-change"
This commit is contained in:
parent
7d323e727e
commit
c189db9d12
1 changed files with 5 additions and 4 deletions
|
|
@ -314,10 +314,11 @@
|
||||||
(doseq [k ks]
|
(doseq [k ks]
|
||||||
(swap! watchers update k #(conj % state))))
|
(swap! watchers update k #(conj % state))))
|
||||||
|
|
||||||
(on-change [_ k]
|
(on-change [_ ks]
|
||||||
(let [states (@watchers k)]
|
(doseq [k ks]
|
||||||
(apply stop states)
|
(let [states (@watchers k)]
|
||||||
(apply start states))))
|
(apply stop states)
|
||||||
|
(apply start states)))))
|
||||||
|
|
||||||
(defn restart-listner
|
(defn restart-listner
|
||||||
([]
|
([]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue