Comparing version 0.0.6-6 to 0.0.6-7
@@ -50,7 +50,5 @@ exports.RETRY_STRATEGY = RETRY_STRATEGY = {CONSTANT: 0, EXPONENTIAL: 1, LINEAR: 2}; | ||
callback = callback || function () {}; | ||
try{ | ||
operation(this.retry, fail, callback); | ||
} catch(err) { | ||
console.log("EXCEPTIONS BIATCH!") | ||
fail(err); | ||
@@ -63,4 +61,2 @@ } | ||
callback = callback || function () {}; | ||
operation(this.retry, fail, callback); | ||
@@ -74,2 +70,3 @@ } | ||
callback = callback || function () {}; | ||
@@ -76,0 +73,0 @@ if(self.retry < self.maxRetries){ |
{ | ||
"name": "re", | ||
"description": "Do it again, after a bit.", | ||
"version": "0.0.6-6", | ||
"version": "0.0.6-7", | ||
"main": "./lib/re", | ||
@@ -6,0 +6,0 @@ "keywords": ["utility", "retry", "exponential backoff", "linear backoff"], |
@@ -7,3 +7,3 @@ var retry = require('../lib/re'); | ||
"initial":100, | ||
"base":1.7102 | ||
"base":2 | ||
}, | ||
@@ -10,0 +10,0 @@ options = {"timeout": 10000, "retries": 10, "retryStrategy": strategy}, |
8588
113