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 27d698e commit 4e9e51aCopy full SHA for 4e9e51a
packages/sdk/python/human-protocol-sdk/human_protocol_sdk/utils.py
@@ -108,7 +108,7 @@ def custom_gql_fetch(
108
if not is_indexer_error(error):
109
break
110
111
- delay = base_delay * (2**attempt)
+ delay = base_delay * attempt
112
time.sleep(delay)
113
114
raise last_error
packages/sdk/typescript/human-protocol-sdk/src/utils.ts
@@ -151,8 +151,7 @@ export const customGqlFetch = async <T = any>(
151
throw error;
152
}
153
154
- const delay = baseDelay * Math.pow(2, attempt);
155
-
+ const delay = baseDelay * attempt;
156
await sleep(delay);
157
158
0 commit comments