mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
wasCached out of scope
This commit is contained in:
parent
bad40ca0ea
commit
0980b22e55
@ -2512,11 +2512,11 @@ const mutateDynamicStatsFromCache = async function (oldOrchestratorObj, newOrche
|
|||||||
// Gets info on a given Orchestrator
|
// Gets info on a given Orchestrator
|
||||||
const parseOrchestrator = async function (reqAddr) {
|
const parseOrchestrator = async function (reqAddr) {
|
||||||
console.log("Getting orchestrator data from thegraph for " + reqAddr);
|
console.log("Getting orchestrator data from thegraph for " + reqAddr);
|
||||||
|
let wasCached = false;
|
||||||
try {
|
try {
|
||||||
reqAddr = reqAddr.toLowerCase();
|
reqAddr = reqAddr.toLowerCase();
|
||||||
const now = new Date().getTime();
|
const now = new Date().getTime();
|
||||||
// Default assume it's the first time we request this Orchestrator
|
// Default assume it's the first time we request this Orchestrator
|
||||||
let wasCached = false;
|
|
||||||
let needsUpdate = true;
|
let needsUpdate = true;
|
||||||
let orchestratorObj = {};
|
let orchestratorObj = {};
|
||||||
// First get cached object
|
// First get cached object
|
||||||
|
Loading…
x
Reference in New Issue
Block a user