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 logger = new Logger(HttpService.name);
const axiosInstance = axios.create(config); const axiosInstance = axios.create(config);
axiosRetry(axiosInstance, { axiosRetry(axiosInstance, {
retries: 10,
// Default exponential backoff // Default exponential backoff
retryDelay: exponentialDelay, retryDelay: exponentialDelay,
retryCondition: isNetworkOrIdempotentRequestOrGatewayOrRateLimitError, retryCondition: isNetworkOrIdempotentRequestOrGatewayOrRateLimitError,