Skip to content

Commit

Permalink
bug: temporary fix strange bug
Browse files Browse the repository at this point in the history
  • Loading branch information
seleniumforest committed Oct 14, 2022
1 parent 25ff2d3 commit 3dcfefc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/endpoints.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ const getChainData = (registryName) => {
const reportStats = (networkName, rpc, result) => {
let key = `${networkName}/${rpc}`;
let endp = endpointRankings[networkName].get(key);

//todo fix this
if (!endp)
return;

endpointRankings[networkName].set(key, result ? { ...endp, ok: ++endp.ok } :
{ ...endp, fail: ++endp.fail });
}
Expand Down

0 comments on commit 3dcfefc

Please sign in to comment.