Skip to content

Commit 435111d

Browse files
committed
Fetcher should call client.poll() regardless of in-flight-request count
1 parent 59d6d6a commit 435111d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

kafka/consumer/group.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,7 @@ def _message_generator(self):
10901090
if time.time() > timeout_at:
10911091
log.debug("internal iterator timeout - breaking for poll")
10921092
break
1093-
if self._client.in_flight_request_count():
1094-
self._client.poll(timeout_ms=0)
1093+
self._client.poll(timeout_ms=0)
10951094

10961095
# An else block on a for loop only executes if there was no break
10971096
# so this should only be called on a StopIteration from the fetcher

0 commit comments

Comments
 (0)