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 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,
|
||||||
|
|
Loading…
Reference in a new issue