summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
authorOmar <omar.ghishan@rd.io>2014-02-26 16:55:28 -0800
committerOmar <omar.ghishan@rd.io>2014-02-26 16:55:28 -0800
commitab89a44ecf9c93b116fcc8516cfc21749df74507 (patch)
tree5e318c4c7541bade1da687d2cf5fd145c594dc2b /example.py
parente5fdc1c7b22c8ad2aaa66a486871d0ed65977e3d (diff)
parent51910f981843dfa967d24659cdb46117210c832d (diff)
downloadkafka-python-ab89a44ecf9c93b116fcc8516cfc21749df74507.tar.gz
Merge pull request #122 from mrtheb/multihosts
Support for multiple hosts on KafkaClient boostrap (improves on #70)
Diffstat (limited to 'example.py')
-rw-r--r--example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example.py b/example.py
index 3a2dc92..0cf5583 100644
--- a/example.py
+++ b/example.py
@@ -14,7 +14,7 @@ def consume_example(client):
print(message)
def main():
- client = KafkaClient("localhost", 9092)
+ client = KafkaClient("localhost:9092")
produce_example(client)
consume_example(client)