log something as workaround for zk not triggering watcher
This commit is contained in:
parent
512723d6ca
commit
b71e2dfee8
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
(defproject y42/clj-druid "0.1.9"
|
(defproject y42/clj-druid "0.2.1"
|
||||||
:description "Clojure library for Druid.io"
|
:description "Clojure library for Druid.io"
|
||||||
:url "http://github.com/y42/clj-druid"
|
:url "http://github.com/y42/clj-druid"
|
||||||
:license {:name "MIT"
|
:license {:name "MIT"
|
||||||
|
|
|
@ -48,7 +48,9 @@
|
||||||
(-<>> path
|
(-<>> path
|
||||||
(zk/children zk-client <>
|
(zk/children zk-client <>
|
||||||
:watch? true
|
:watch? true
|
||||||
:watcher #(do (zk-watch-node-list) zk-client path))
|
:watcher #(do (println %)
|
||||||
|
(zk-watch-node-list zk-client path)))
|
||||||
|
|
||||||
(map #(data/to-string (:data (zk/data zk-client (str path "/" %)))))
|
(map #(data/to-string (:data (zk/data zk-client (str path "/" %)))))
|
||||||
(map #(json/read-str %))
|
(map #(json/read-str %))
|
||||||
(map #(make-host-http-str %))
|
(map #(make-host-http-str %))
|
||||||
|
|
Loading…
Reference in a new issue