From 7331da69aa3442d7edaed4160b5a6bd3239ed265 Mon Sep 17 00:00:00 2001 From: Lizzy Hunt Date: Wed, 11 Oct 2023 11:06:35 -0600 Subject: allow cookie on stdin --- src/exponential_retry.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exponential_retry.js') diff --git a/src/exponential_retry.js b/src/exponential_retry.js index 96ca979..66c78d3 100644 --- a/src/exponential_retry.js +++ b/src/exponential_retry.js @@ -11,12 +11,12 @@ export const with_exponential_retry = async ( promise_fn, validation_fn = (x) => Promise.resolve(!!x), max_retries = MAX_DEFAULT_RETRY_AMOUNT, - retries = 0 + retries = 0, ) => { try { if (retries) await wait_for( - WAIT_MS * Math.pow(RETRY_EXPONENT, RETRY_EXPONENTIAL_FACTOR * retries) + WAIT_MS * Math.pow(RETRY_EXPONENT, RETRY_EXPONENTIAL_FACTOR * retries), ); const res = await promise_fn(); @@ -29,7 +29,7 @@ export const with_exponential_retry = async ( promise_fn, validation_fn, max_retries, - retries + 1 + retries + 1, ); } }; -- cgit v1.2.3-70-g09d2