Added auto commit true
This commit is contained in:
parent
3db98ede09
commit
6f76568024
|
@ -12,7 +12,7 @@ kc = kafka.client.KafkaClient("192.168.10.4:9092")
|
|||
consumer = kafka.consumer.SimpleConsumer(kc,
|
||||
"Foo",
|
||||
"stream-notifications",
|
||||
auto_commit=False)
|
||||
auto_commit=True)
|
||||
|
||||
for raw_event in consumer:
|
||||
event = json.loads(raw_event.message.value)
|
||||
|
|
Loading…
Reference in New Issue