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 09:43:01 +02:00
committed by GitHub
parent 2a114917f1
commit 1d6fd7898a
3 changed files with 15 additions and 5 deletions
+1
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)