refactor: adjust default retries to 10
Adjust default retries to 10 to allow a longer backoff commit-id:e43406fc
This commit is contained in:
parent
f13ffed693
commit
021137d4d9
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue