Merge pull request #327 from furality/spr/main/e43406fc

refactor: adjust default retries to 10
This commit is contained in:
ttshivers 2024-03-24 00:13:16 -05:00 committed by GitHub
commit 9b533bf273
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,