From 021137d4d912dbc591ad2cadd90350efce7d91b2 Mon Sep 17 00:00:00 2001 From: Conicaw Date: Sun, 24 Mar 2024 00:12:24 -0500 Subject: [PATCH] refactor: adjust default retries to 10 Adjust default retries to 10 to allow a longer backoff commit-id:e43406fc --- lib/http.module.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http.module.ts b/lib/http.module.ts index 885df39..001f0d3 100644 --- a/lib/http.module.ts +++ b/lib/http.module.ts @@ -17,6 +17,7 @@ const createAxiosInstance = (config?: HttpModuleOptions) => { const logger = new Logger(HttpService.name); const axiosInstance = axios.create(config); axiosRetry(axiosInstance, { + retries: 10, // Default exponential backoff retryDelay: exponentialDelay, retryCondition: isNetworkOrIdempotentRequestOrGatewayOrRateLimitError,