diff --git a/dist/index.js b/dist/index.js index 11175c7..2213811 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; }