Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Prev Previous commit
Next Next commit
Fixup comments
  • Loading branch information
dpkp committed Dec 21, 2017
commit a9fdfb08501b368743fc1716cd125ac64b16b1e8
8 changes: 4 additions & 4 deletions kafka/coordinator/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def _send_join_group_request(self):
elif (0, 9) <= self.config['api_version'] < (0, 10, 1):
request = JoinGroupRequest[0](
self.group_id,
self.config['session_timeout_ms'], # or max(session, max_poll_interval_ms) ?
self.config['session_timeout_ms'],
self._generation.member_id,
self.protocol_type(),
member_metadata)
Expand Down Expand Up @@ -913,9 +913,9 @@ def _run_once(self):
self.disable()
return

# When consumer.wakeup() is implemented, we need to
# disable here to prevent propagating an exception
# to this heartbeat thread
# TODO: When consumer.wakeup() is implemented, we need to
# disable here to prevent propagating an exception to this
# heartbeat thread
self.coordinator._client.poll(timeout_ms=0)

if self.coordinator.coordinator_unknown():
Expand Down