File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -1070,16 +1070,6 @@ def _message_generator(self):
1070
1070
# like heartbeats, auto-commits, and metadata refreshes
1071
1071
timeout_at = self ._next_timeout ()
1072
1072
1073
- # Because the consumer client poll does not sleep unless blocking on
1074
- # network IO, we need to explicitly sleep when we know we are idle
1075
- # because we haven't been assigned any partitions to fetch / consume
1076
- if self ._use_consumer_group () and not self .assignment ():
1077
- sleep_time = max (timeout_at - time .time (), 0 )
1078
- if sleep_time > 0 and not self ._client .in_flight_request_count ():
1079
- log .debug ('No partitions assigned; sleeping for %s' , sleep_time )
1080
- time .sleep (sleep_time )
1081
- continue
1082
-
1083
1073
# Short-circuit the fetch iterator if we are already timed out
1084
1074
# to avoid any unintentional interaction with fetcher setup
1085
1075
if time .time () > timeout_at :
You can’t perform that action at this time.
0 commit comments