requested changes
This commit is contained in:
@@ -46,9 +46,10 @@ const setupAxiosRetry = () => {
|
|||||||
config._retryCount!++;
|
config._retryCount!++;
|
||||||
const exponentialDelay = Math.min(initialRetryDelay * Math.pow(backoffFactor, config._retryCount! - 1));
|
const exponentialDelay = Math.min(initialRetryDelay * Math.pow(backoffFactor, config._retryCount! - 1));
|
||||||
|
|
||||||
return new Promise(async resolve => {
|
return new Promise(resolve => {
|
||||||
await new Promise(resolve => setTimeout(resolve, exponentialDelay));
|
setTimeout(() => {
|
||||||
resolve(axiosInstance(config));
|
resolve(axiosInstance(config));
|
||||||
|
}, exponentialDelay);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user