Skip to content

Commit

Permalink
use ns-resolve to resolve backends
Browse files Browse the repository at this point in the history
  • Loading branch information
scarytom committed Jun 7, 2012
1 parent 2e2db3f commit 1e578e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clj_statsd_svr.clj
Expand Up @@ -62,7 +62,7 @@
(assoc @snapshot :timestamp (System/currentTimeMillis) :flush-interval (config :flush-interval))))

(defn distribute [report]
(doseq [backend (config :backends)] (future (((ns-publics backend) 'publish) report))))
(doseq [backend (config :backends)] (future ((ns-resolve backend 'publish) report))))

;manangement
(defn manage-via [socket]
Expand Down

0 comments on commit 1e578e0

Please sign in to comment.