Skip to content

Commit

Permalink
fix: Default policy type issue with join()
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanmaric committed Sep 3, 2024
1 parent 9509b6f commit 276086f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/policies/Default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ export const Default = (options?: DefaultOptions): RetryPolicy =>
Breaker({
max: options?.maxAttempts,
}),
options?.fastTrack ? FastTrack() : (undefined as unknown as RetryPolicy),
options?.fastTrack ? FastTrack() : undefined,
PollyJitter({
initial: options?.initialDelay,
max: options?.maxDelay,
}),
options?.next as RetryPolicy,
].filter(Boolean),
options?.next,
].filter(Boolean) as [RetryPolicy, RetryPolicy],
)

0 comments on commit 276086f

Please sign in to comment.