requested changes

This commit is contained in:
Daniel Hougaard
2025-04-13 21:33:18 +04:00
parent 0798b40e32
commit 48ccf7a73a

View File

@@ -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);
}); });
} }