Skip to content

Commit

Permalink
Reverts documentation back to saying 100ms as base retry delay. Updat…
Browse files Browse the repository at this point in the history
…es retry delay util function to use default 100ms base retry delay.
  • Loading branch information
LiuJoyceC committed Aug 30, 2016
1 parent bb6745d commit 90b410b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ require('./credentials/credential_provider_chain');
* Currently supported options are:
*
* * **base** [Integer] — The base number of milliseconds to use in the
* exponential backoff for operation retries. Defaults to 30 ms.
* exponential backoff for operation retries. Defaults to 100 ms.
* * **customBackoff ** [function] — A custom function that accepts a retry count
* and returns the amount of time to delay in milliseconds. The `base` option will be
* ignored if this option is supplied.
Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/ec2_metadata_credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ require('../metadata_service');
* AWS.config.credentials = new AWS.EC2MetadataCredentials({
* httpOptions: { timeout: 5000 }, // 5 second timeout
* maxRetries: 10, // retry 10 times
* retryDelayOptions: { base: 30 } // see AWS.Config for information
* retryDelayOptions: { base: 200 } // see AWS.Config for information
* });
* ```
*
Expand Down
2 changes: 1 addition & 1 deletion lib/credentials/ecs_credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var AWS = require('../core');
* AWS.config.credentials = new AWS.ECSCredentials({
* httpOptions: { timeout: 5000 }, // 5 second timeout
* maxRetries: 10, // retry 10 times
* retryDelayOptions: { base: 30 } // see AWS.Config for information
* retryDelayOptions: { base: 200 } // see AWS.Config for information
* });
* ```
*
Expand Down
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ var util = {
if (typeof customBackoff === 'function') {
return customBackoff(retryCount);
}
var base = retryDelayOptions.base || 30;
var base = retryDelayOptions.base || 100;
var delay = Math.random() * (Math.pow(2, retryCount) * base);
return delay;
},
Expand Down

0 comments on commit 90b410b

Please sign in to comment.