rename :zookeeper-connect in to-clojure to :connect - it is the details to connect directly to the broker

This commit is contained in:
Paul Ingles 2013-06-10 15:07:33 +01:00
parent b543bdcb5a
commit f997dcfcb0
2 changed files with 4 additions and 4 deletions

View file

@ -40,7 +40,7 @@
Broker Broker
(to-clojure [x] (to-clojure [x]
{:zookeeper-connect (.getZkString x) {:connect (.getConnectionString x)
:host (.host x) :host (.host x)
:port (.port x) :port (.port x)
:broker-id (.id x)}) :broker-id (.id x)})

View file

@ -13,15 +13,15 @@
(expect count 1 (expect count 1
first {:topic "test", first {:topic "test",
:partition-metadata [{:partition-id 0, :partition-metadata [{:partition-id 0,
:leader {:zookeeper-connect "localhost:9999", :leader {:connect "localhost:9999",
:host "localhost", :host "localhost",
:port 9999 :port 9999
:broker-id 0}, :broker-id 0},
:replicas [{:zookeeper-connect "localhost:9999", :replicas [{:connect "localhost:9999",
:host "localhost", :host "localhost",
:port 9999 :port 9999
:broker-id 0}], :broker-id 0}],
:in-sync-replicas [{:zookeeper-connect "localhost:9999", :in-sync-replicas [{:connect "localhost:9999",
:host "localhost", :host "localhost",
:port 9999 :port 9999
:broker-id 0}], :broker-id 0}],