summaryrefslogtreecommitdiff
path: root/kafka/consumer/fetcher.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2017-08-15 12:59:35 -0700
committerGitHub <noreply@github.com>2017-08-15 12:59:35 -0700
commitcbc6fdc4b973a6a94953c9ce9c33e54e415e45bf (patch)
tree984f25de6693e0b5354c801a4a3590bfcb760577 /kafka/consumer/fetcher.py
parent497ded919356038d57e935850346ff347b8ea6ef (diff)
downloadkafka-python-cbc6fdc4b973a6a94953c9ce9c33e54e415e45bf.tar.gz
Drop unused sleep kwarg to poll (#1177)
Diffstat (limited to 'kafka/consumer/fetcher.py')
-rw-r--r--kafka/consumer/fetcher.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py
index c0d6075..10ed187 100644
--- a/kafka/consumer/fetcher.py
+++ b/kafka/consumer/fetcher.py
@@ -275,8 +275,7 @@ class Fetcher(six.Iterator):
if future.exception.invalid_metadata:
refresh_future = self._client.cluster.request_update()
- self._client.poll(
- future=refresh_future, sleep=True, timeout_ms=remaining_ms)
+ self._client.poll(future=refresh_future, timeout_ms=remaining_ms)
else:
time.sleep(self.config['retry_backoff_ms'] / 1000.0)