diff options
author | Dana Powers <dana.powers@gmail.com> | 2017-08-15 12:59:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 12:59:35 -0700 |
commit | cbc6fdc4b973a6a94953c9ce9c33e54e415e45bf (patch) | |
tree | 984f25de6693e0b5354c801a4a3590bfcb760577 /kafka/consumer/fetcher.py | |
parent | 497ded919356038d57e935850346ff347b8ea6ef (diff) | |
download | kafka-python-cbc6fdc4b973a6a94953c9ce9c33e54e415e45bf.tar.gz |
Drop unused sleep kwarg to poll (#1177)
Diffstat (limited to 'kafka/consumer/fetcher.py')
-rw-r--r-- | kafka/consumer/fetcher.py | 3 |
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) |