From 6f30bb7faaf079ee15eaa1ed56e646942481d8ad Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 17 Feb 2023 11:28:07 -0500 Subject: [PATCH] *set maxAttempts to Number.MAX_SAFE_INTEGER --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index b4fc25f..fee82c4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,7 +21,7 @@ export class SwarmClient extends Client { this._autoReconnect = autoReconnect; this._connectBackoff = new Backoff({ strategy: "fibo", - maxAttempts: 0, + maxAttempts: Number.MAX_SAFE_INTEGER, }); }