Skip to content

Commit

Permalink
BMS-448: Change exponent to 2 and intial delay to 30
Browse files Browse the repository at this point in the history
  • Loading branch information
badaldesai committed Jan 24, 2020
1 parent 6523070 commit 72b9007
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const
EVENT_REDIRECT = 'redirect',
EVENT_REQUEST = 'request',
EVENT_RESPONSE = 'response',
EXPONENT = 10,
EXPONENT = 2,
FIRST_TRY = 1,
HTTP_ERROR_CODE_THRESHHOLD = 400,
HTTP_ERROR_CODE_RETRY_THRESHHOLD = 500,
Expand Down Expand Up @@ -243,7 +243,7 @@ module.exports = (function (self) {
options.totalTimeout = Number(options.totalTimeout);
options.initialDelay = Number(options.initialDelay);
if (!options.initialDelay) {
options.initialDelay = 1;
options.initialDelay = 30;
}
if (options.totalTimeout > options.timeout) {
options.totalTimeout = options.timeout;
Expand Down

0 comments on commit 72b9007

Please sign in to comment.