mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 10:45:10 +02:00
Fix updating cached delegators or orchestrators
This commit is contained in:
parent
a5252eb3e9
commit
1995a2177a
@ -475,7 +475,7 @@ const parseOrchestrator = async function (reqAddr) {
|
||||
orchestratorObj.lastGet = now;
|
||||
if (wasCached) {
|
||||
for (var orch of orchestratorCache) {
|
||||
if (orch.addr == requestedOrchestrator) {
|
||||
if (orch.id == reqAddr) {
|
||||
orch = orchestratorObj;
|
||||
break;
|
||||
}
|
||||
@ -563,7 +563,7 @@ const parseDelegator = async function (reqAddr) {
|
||||
delegatorObj.lastGet = now;
|
||||
if (wasCached) {
|
||||
for (var delegator of delegatorCache) {
|
||||
if (delegator.addr == requestedOrchestrator) {
|
||||
if (delegator.id == reqAddr) {
|
||||
delegator = delegatorObj;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user