Skip to content
Snippets Groups Projects
Commit 719dc103 authored by Jason Salyers's avatar Jason Salyers
Browse files

[JES] Testing if I can link against a gitlab version

parent 1b77799a
No related branches found
No related tags found
2 merge requests!2Fail Over Capability,!1Automatic Fail Over
...@@ -14,6 +14,19 @@ class RPCError extends Error { ...@@ -14,6 +14,19 @@ class RPCError extends Error {
} }
} }
let _errorCount = 0, _errorLimit = 4, _hasBeenInitialized = false, _apiNodeIndex = 0;
const suggestedApiNodes = ['https://api.hive.blog', 'https://anyx.io'];
function notifyError()
{
console.log("in notifyError()");
_errorCount++;
if (_errorCount >= _errorLimit)
{
_errorCount = 0;
}
};
/** /**
* Makes a JSON-RPC request using `fetch` or a user-provided `fetchMethod`. * Makes a JSON-RPC request using `fetch` or a user-provided `fetchMethod`.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment