We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a61e92 commit 7b33a71Copy full SHA for 7b33a71
etcd3/baseclient.py
@@ -55,7 +55,9 @@ def retry_all_hosts(func):
55
def wrapper(self, *args, **kwargs):
56
errors = []
57
got_result = False
58
- for i in range(len(self.endpoints)):
+ retries = len(self.endpoints)
59
+ while retries > 0:
60
+ retries -= 1
61
endpoint = self.endpoints.pop(0)
62
self.endpoints.append(endpoint)
63
self.host = endpoint.host
0 commit comments