Skip to content

Commit

Permalink
feat!(retry): change default maxDelayMs to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
aikoven committed Jul 21, 2022
1 parent 3b5e763 commit 7ffa0e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export type RetryOptions = {
/**
* Maximum delay between attempts in milliseconds.
*
* Defaults to 15 seconds.
* Defaults to 30 seconds.
*
* Example: if `baseMs` is 1000 and `maxDelayMs` is 3000, then retries will be
* attempted in 1000ms, 2000ms, 3000ms, 3000ms etc (not counting jitter).
Expand Down Expand Up @@ -48,7 +48,7 @@ export async function retry<T>(
): Promise<T> {
const {
baseMs = 1000,
maxDelayMs = 15000,
maxDelayMs = 30000,
onError,
maxAttempts = Infinity,
} = options;
Expand Down

0 comments on commit 7ffa0e2

Please sign in to comment.