From b86daafeaf72f4d678d3b627d32f39ab6f0e54ec Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sun, 10 Jan 2016 19:54:14 -0800 Subject: Fix sec / millisec unit bug in KafkaConsumer._poll_once() --- kafka/consumer/group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kafka') diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 3fb9c8e..c6beb25 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -441,7 +441,7 @@ class KafkaConsumer(six.Iterator): return records self._fetcher.init_fetches() - self._client.poll(timeout_ms / 1000.0) + self._client.poll(timeout_ms) return self._fetcher.fetched_records() def position(self, partition): -- cgit v1.2.1