Skip to content

Commit

Permalink
BMS-448: Added constant for default initial delay
Browse files Browse the repository at this point in the history
  • Loading branch information
badaldesai committed Jan 24, 2020
1 parent 72b9007 commit c9b875d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const
DEFAULT_MAX_REDIRECT_COUNT = 5,
DEFAULT_RETRY_COUNT = 3,
DEFAULT_TIMEOUT = 30000,
DEFAULT_DELAY = 30,
EVENT_REDIRECT = 'redirect',
EVENT_REQUEST = 'request',
EVENT_RESPONSE = 'response',
Expand Down Expand Up @@ -243,7 +244,7 @@ module.exports = (function (self) {
options.totalTimeout = Number(options.totalTimeout);
options.initialDelay = Number(options.initialDelay);
if (!options.initialDelay) {
options.initialDelay = 30;
options.initialDelay = DEFAULT_DELAY;
}
if (options.totalTimeout > options.timeout) {
options.totalTimeout = options.timeout;
Expand Down

0 comments on commit c9b875d

Please sign in to comment.