tendermint-rpc
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -114,5 +114,2 @@ // settings = { | ||
function failover (settings, count, callback) { | ||
// modulo for wrap around | ||
count = count % settings.remotes.length | ||
// if all remotes are bad, clear and try again after a 1 second delay | ||
@@ -125,3 +122,3 @@ if ( | ||
setTimeout(function () { | ||
failover(settings, (count + 1), callback) | ||
failover(settings, 0, callback) | ||
}, 1000) | ||
@@ -128,0 +125,0 @@ |
{ | ||
"name": "tendermint-rpc", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "This is a simple RPC wrapper for the Tendermint API", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
7491
228