Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
hive
hive-js
Commits
719dc103
Commit
719dc103
authored
Apr 02, 2020
by
Jason Salyers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[JES] Testing if I can link against a gitlab version
parent
1b77799a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/api/transports/http.js
src/api/transports/http.js
+13
-0
No files found.
src/api/transports/http.js
View file @
719dc103
...
@@ -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`.
*
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment