Skip to content

Commit

Permalink
AWS load testing - chore(longpolling): set delay to one second (#495)
Browse files Browse the repository at this point in the history
## Changes
- chore(longpolling): set delay to one second
  • Loading branch information
shindigira authored May 15, 2024
1 parent 4bfca21 commit f781467
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/api/requests/fetchFilingSubmissionLatest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ async function retryRequestWithDelay(

console.log(
'retry delay time:',
getRetryDelay(axiosInstance.defaults.retryCount),
// getRetryDelay(axiosInstance.defaults.retryCount),
);

return new Promise(resolve => {
setTimeout(
() => resolve(axiosInstance(response.config)),
getRetryDelay(axiosInstance.defaults.retryCount),
// getRetryDelay(axiosInstance.defaults.retryCount),
// NOTE: Set to one second for AWS load testing
STANDARD_TIMEOUT,
);
});
}
Expand Down

0 comments on commit f781467

Please sign in to comment.