Fix updating cached delegators or orchestrators

This commit is contained in:
Marco van Dijk 2022-03-07 12:35:01 +01:00
parent a5252eb3e9
commit 1995a2177a

View File

@ -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;
}