rename :zookeeper-connect in to-clojure to :connect - it is the details to connect directly to the broker
This commit is contained in:
parent
b543bdcb5a
commit
f997dcfcb0
2 changed files with 4 additions and 4 deletions
|
@ -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)})
|
||||||
|
|
|
@ -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}],
|
||||||
|
|
Loading…
Reference in a new issue