*Update dist
This commit is contained in:
parent
28eb7ac2d6
commit
4d6f9a81d5
|
@ -376,7 +376,7 @@ class DHTCache extends events_1.default {
|
|||
const node = this.graph.node.get(peer);
|
||||
const heartbeat = node?.heartbeat;
|
||||
const conn = this.swarm._allConnections.get(pubkey);
|
||||
const online = conn && heartbeat > 0 && Date.now() - heartbeat > 60 * 1000;
|
||||
const online = conn && heartbeat > 0 && Date.now() - heartbeat <= 60 * 1000;
|
||||
if (node?.online !== online) {
|
||||
changed = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue