Skip to content

Commit

Permalink
Merge pull request #19 from yuzhigang33/master
Browse files Browse the repository at this point in the history
fix example, 'times' should be 'retries'
  • Loading branch information
tim-kos committed May 21, 2015
2 parents 167793e + dc563f8 commit b254e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/dns.js
Expand Up @@ -3,7 +3,7 @@ var retry = require('../lib/retry');

function faultTolerantResolve(address, cb) {
var opts = {
times: 2,
retries: 2,
factor: 2,
minTimeout: 1 * 1000,
maxTimeout: 2 * 1000,
Expand All @@ -28,4 +28,4 @@ faultTolerantResolve('nodejs.org', function(err, errors, addresses) {

console.warn('addresses:');
console.log(addresses);
});
});

0 comments on commit b254e59

Please sign in to comment.