kafka: timeout is in milliseconds
Change-Id: I791c5dd8e7f4fb46a0aea3e825b9b392686a2abd
This commit is contained in:
parent
799cd6fa8f
commit
c8880b6f11
@ -181,7 +181,7 @@ class Connection(object):
|
||||
|
||||
@with_reconnect()
|
||||
def _poll_messages(self, timeout):
|
||||
return self.consumer.poll(timeout)
|
||||
return self.consumer.poll(timeout * 1000.0)
|
||||
|
||||
def consume(self, timeout=None):
|
||||
"""Receive up to 'max_fetch_messages' messages.
|
||||
|
Loading…
x
Reference in New Issue
Block a user