Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79dd508

Browse filesBrowse files
committed
Delay converting to seconds
Delaying the conversion to seconds makes the code intent more clear.
1 parent 9f0b518 commit 79dd508
Copy full SHA for 79dd508

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎kafka/client_async.py

Copy file name to clipboardExpand all lines: kafka/client_async.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,9 +591,9 @@ def poll(self, timeout_ms=None, future=None):
591591
# if there are no requests in flight, do not block longer than the retry backoff
592592
if self.in_flight_request_count() == 0:
593593
timeout = min(timeout, self.config['retry_backoff_ms'])
594-
timeout = max(0, timeout / 1000) # avoid negative timeouts
594+
timeout = max(0, timeout) # avoid negative timeouts
595595

596-
self._poll(timeout)
596+
self._poll(timeout / 1000)
597597

598598
responses.extend(self._fire_pending_completed_requests())
599599

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.