Skip to content

Commit

Permalink
feat!: change maxDelayMs to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
aikoven committed Sep 5, 2022
1 parent c720662 commit 21549a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/retryCollectionSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export type RetryCollectionSubscriptionOptions<Value, Revision = Value> = {
/**
* 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).
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 21549a0

Please sign in to comment.