diff options
Diffstat (limited to 'example.py')
-rwxr-xr-x | example.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -9,7 +9,7 @@ class Producer(threading.Thread): daemon = True def run(self): - client = KafkaClient("localhost", 9092) + client = KafkaClient("localhost:9092") producer = SimpleProducer(client) while True: @@ -23,7 +23,7 @@ class Consumer(threading.Thread): daemon = True def run(self): - client = KafkaClient("localhost", 9092) + client = KafkaClient("localhost:9092") consumer = SimpleConsumer(client, "test-group", "my-topic") for message in consumer: |