Skip to content

Commit

Permalink
fixing the peer names
Browse files Browse the repository at this point in the history
  • Loading branch information
d-led committed Jul 17, 2024
1 parent d72db93 commit dd7a8c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ui-src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,15 +227,15 @@ function correctClusterEvents(newEvent) {
return;
}
clusterEvents.forEach((e,i) =>{
if (e.from == newEvent.mapping.ip) {
if (`${e.from}`.indexOf(newEvent.mapping.ip) !== -1) {
e.from = newEvent.mapping.peer;
clusterEvents[i] = e;
console.log(`${e.from} -> ${newEvent.mapping.peer}`);
clusterEvents[i] = e;
}
if (e.to == newEvent.mapping.ip) {
if (`${e.to}`.indexOf(newEvent.mapping.ip) !== -1) {
e.to = newEvent.mapping.peer;
clusterEvents[i] = e;
console.log(`${e.to} -> ${newEvent.mapping.peer}`);
clusterEvents[i] = e;
}
});
}
Expand Down

0 comments on commit dd7a8c9

Please sign in to comment.