Skip to content

Commit

Permalink
Update retry-provider.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Nov 18, 2023
1 parent 36fbfd4 commit 94be3d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/retry-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { JsonRpcProvider, StaticJsonRpcProvider, JsonRpcBatchProvider, StaticJso
export class JsonRpcRetryProvider extends JsonRpcProvider {
urls: string[]
urlIndex: number = 0
timeouts: number[] = [5_000, 10_000, 15_000]
timeouts: number[] = [10_000, 15_000, 20_000]
delay: number = 300

constructor (urls: string | string[], options?: { timeouts?: number[], delay?: number }) {
Expand Down Expand Up @@ -43,7 +43,7 @@ export class JsonRpcRetryProvider extends JsonRpcProvider {
export class JsonRpcRetryBatchProvider extends JsonRpcBatchProvider {
urls: string[]
urlIndex: number = 0
timeouts: number[] = [5_000, 10_000, 15_000]
timeouts: number[] = [10_000, 15_000, 20_000]
delay: number = 300

constructor (urls: string | string[], options?: { timeouts?: number[], delay?: number }) {
Expand Down Expand Up @@ -82,7 +82,7 @@ export class JsonRpcRetryBatchProvider extends JsonRpcBatchProvider {
export class StaticJsonRpcRetryProvider extends StaticJsonRpcProvider {
urls: string[]
urlIndex: number = 0
timeouts: number[] = [5_000, 10_000, 15_000]
timeouts: number[] = [10_000, 15_000, 20_000]
delay: number = 300

constructor (urls: string | string[], options?: { timeouts?: number[], delay?: number }) {
Expand Down Expand Up @@ -121,7 +121,7 @@ export class StaticJsonRpcRetryProvider extends StaticJsonRpcProvider {
export class StaticJsonRpcRetryBatchProvider extends StaticJsonRpcBatchProvider {
urls: string[]
urlIndex: number = 0
timeouts: number[] = [5_000, 10_000, 15_000]
timeouts: number[] = [10_000, 15_000, 20_000]
delay: number = 300

constructor (urls: string | string[], options?: { timeouts?: number[], delay?: number }) {
Expand Down

0 comments on commit 94be3d2

Please sign in to comment.