log something as workaround for zk not triggering watcher

This commit is contained in:
Guillaume Buisson 2015-03-25 16:39:54 +01:00
parent 512723d6ca
commit b71e2dfee8
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
(defproject y42/clj-druid "0.1.9"
(defproject y42/clj-druid "0.2.1"
:description "Clojure library for Druid.io"
:url "http://github.com/y42/clj-druid"
:license {:name "MIT"

View file

@ -48,7 +48,9 @@
(-<>> path
(zk/children zk-client <>
: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 #(json/read-str %))
(map #(make-host-http-str %))