mirror of
https://github.com/stronk-dev/OrchestratorTracker.git
synced 2025-07-05 10:55:09 +02:00
fix iterator
This commit is contained in:
parent
f7d1ee5cdd
commit
488c3cff64
@ -417,6 +417,7 @@ Main Loop
|
|||||||
|
|
||||||
const updateScore = async function (address) {
|
const updateScore = async function (address) {
|
||||||
console.log("Checking for new scores for " + address);
|
console.log("Checking for new scores for " + address);
|
||||||
|
const thisInstances = orchCache[address.toLowerCase()].instances;
|
||||||
const lastTime = orchCache[address.toLowerCase()].leaderboardResults.lastTime;
|
const lastTime = orchCache[address.toLowerCase()].leaderboardResults.lastTime;
|
||||||
|
|
||||||
let url =
|
let url =
|
||||||
@ -432,10 +433,7 @@ const updateScore = async function (address) {
|
|||||||
const newSR = instance.round_trip_time / instance.seg_duration;
|
const newSR = instance.round_trip_time / instance.seg_duration;
|
||||||
let latitude = null;
|
let latitude = null;
|
||||||
let longitude = null;
|
let longitude = null;
|
||||||
console.log(address, orchCache[address.toLowerCase()]);
|
for (const [resolvedTarget, instance] of Object.entries(thisInstances)) {
|
||||||
for (const [resolvedTarget, instance] of orchCache[
|
|
||||||
address.toLowerCase()
|
|
||||||
].instances) {
|
|
||||||
if (instance.livepeer_regions[region]) {
|
if (instance.livepeer_regions[region]) {
|
||||||
latitude = instance.livepeer_regions[region].latitude;
|
latitude = instance.livepeer_regions[region].latitude;
|
||||||
longitude = instance.livepeer_regions[region].longitude;
|
longitude = instance.livepeer_regions[region].longitude;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user