diff --git a/src/index.ts b/src/index.ts index 852a541..f7974c8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -224,7 +224,7 @@ function onError(err: AxiosError) { } } // Else calculate delay according to chosen strategy - // Default to exponential backoff - formula: (2^c - 1 / 2) * 1000 + // Default to exponential backoff - formula: ((2^c - 1) / 2) * 1000 else { if (config.backoffType === 'linear') { delay = config.currentRetryAttempt! * 1000;