From 21549a04d1bb63d03132501cfb692f7bf28a3fb5 Mon Sep 17 00:00:00 2001 From: aikoven Date: Mon, 5 Sep 2022 10:11:08 +0700 Subject: [PATCH] feat!: change `maxDelayMs` to 30 seconds --- src/retryCollectionSubscription.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/retryCollectionSubscription.ts b/src/retryCollectionSubscription.ts index a5e3dfc..8d24375 100644 --- a/src/retryCollectionSubscription.ts +++ b/src/retryCollectionSubscription.ts @@ -19,7 +19,7 @@ export type RetryCollectionSubscriptionOptions = { /** * Maximum delay between attempts in milliseconds. * - * Defaults to 15 seconds. + * Defaults to 30 seconds. * * Example: if `baseDelayMs` is 1000 and `maxDelayMs` is 3000, then retries will be * attempted in 1000ms, 2000ms, 3000ms, 3000ms etc (not counting jitter). @@ -91,7 +91,7 @@ export async function* retryCollectionSubscription< const { signal = new AbortController().signal, baseDelayMs = 1000, - maxDelayMs = 15000, + maxDelayMs = 30000, maxAttempts = Infinity, onError, getRevision = value => value as unknown as Revision,