refactor: adjust default retries to 10

Adjust default retries to 10 to allow a longer backoff

commit-id:e43406fc
This commit is contained in:
Conicaw 2024-03-24 00:12:24 -05:00
parent f13ffed693
commit 021137d4d9
No known key found for this signature in database
GPG key ID: 8DE10AC00159C418

View file

@ -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,