diff --git a/utils/retryAsync.js b/utils/retryAsync.js index 4e8be25..e9772e3 100644 --- a/utils/retryAsync.js +++ b/utils/retryAsync.js @@ -23,9 +23,9 @@ export async function retryAsync(asyncFn, options = {}) { } const { - retries = 0, - delay = 0, - backoff = false + retries = 3, + delay = 1000, + backoff = true } = options; if (retries < 0 || delay < 0) { @@ -54,4 +54,4 @@ export async function retryAsync(asyncFn, options = {}) { } throw lastError; -} \ No newline at end of file +}