Merge pull request #327 from furality/spr/main/e43406fc
refactor: adjust default retries to 10
This commit is contained in:
commit
9b533bf273
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