Consider all reconnect attempts as retrying (#1557)

This means that a value of 0 retries will no longer try to reconnect.
This commit is contained in:
yash-dk
2020-09-13 13:13:01 +05:30
committed by GitHub
parent 2a114917f1
commit 1d6fd7898a
3 changed files with 15 additions and 5 deletions

View File

@@ -51,6 +51,7 @@ class UserMethods:
request_index = 0
self._last_request = time.time()
for attempt in retry_range(self._request_retries):
try:
future = sender.send(request, ordered=ordered)