Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed Jun 17, 2024
1 parent 9cbcb95 commit 7c0b502
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/retry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function getNextRetryDelay(config: RetryConfig) {
// Calculate time to wait with exponential backoff.
// If this is the first retry, look for a configured retryDelay.
const retryDelay = config.currentRetryAttempt ? 0 : config.retryDelay ?? 100;
// Formula: retryDelay + ((2^c - 1 / 2) * 1000)
// Formula: retryDelay + ((retryDelayMultiplier^currentRetryAttempt - 1 / 2) * 1000)
const calculatedDelay =
retryDelay +
((Math.pow(config.retryDelayMultiplier!, config.currentRetryAttempt!) - 1) /
Expand Down

0 comments on commit 7c0b502

Please sign in to comment.