From 54db6247272432a66bfeda3016b7bdf51b9296e5 Mon Sep 17 00:00:00 2001 From: polyprogrammist Date: Wed, 18 Dec 2024 22:51:40 +0700 Subject: [PATCH] fix: remove delayfirstattempt --- packages/providers/src/fetch_json.ts | 1 - packages/providers/src/json-rpc-provider.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/providers/src/fetch_json.ts b/packages/providers/src/fetch_json.ts index 82b052429..3ee6d1af2 100644 --- a/packages/providers/src/fetch_json.ts +++ b/packages/providers/src/fetch_json.ts @@ -11,7 +11,6 @@ export function retryConfig(numOfAttempts=RETRY_NUMBER, timeMultiple=BACKOFF_MUL numOfAttempts: numOfAttempts, timeMultiple: timeMultiple, startingDelay: startingDelay, - delayFirstAttempt: true, retry: (e: ProviderError) => { if ([503, 500, 408].includes(e.cause)) { return true; diff --git a/packages/providers/src/json-rpc-provider.ts b/packages/providers/src/json-rpc-provider.ts index 5ba1642e5..0cbe3eb5e 100644 --- a/packages/providers/src/json-rpc-provider.ts +++ b/packages/providers/src/json-rpc-provider.ts @@ -376,7 +376,6 @@ export class JsonRpcProvider extends Provider { * @param params Parameters to the method */ async sendJsonRpc(method: string, params: object): Promise { - // this.options.wait, this.options.retries, this.options.backoff, const request = { method, params,