Comparing version 3.3.4 to 3.3.5
@@ -276,4 +276,7 @@ 'use strict'; | ||
.catch(function (err) { | ||
var delay = _.min([attempt++ * self.options.reconnectionDelay.min, self.options.reconnectionDelay.max]); | ||
self.error('Metadata request failed:', err); | ||
var delay = _.min([attempt * self.options.reconnectionDelay.min, self.options.reconnectionDelay.max]); | ||
if ((attempt - 1) % _.max([(60000 / delay), 1]) === 0) { // once per minute | ||
self.error('Metadata request failed at attempt #' + attempt + '. Will keep trying. Error received was:', err); | ||
} | ||
attempt += 1; | ||
return Promise.delay(delay).then(_try); | ||
@@ -280,0 +283,0 @@ }); |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "3.3.4", | ||
"version": "3.3.5", | ||
"main": "./lib/index.js", | ||
@@ -12,0 +12,0 @@ "types": "./types/index.d.ts", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
359708
5988