From 4d6f9a81d5f30a3ad9445c917cc9b9a443f261f1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 5 Dec 2022 14:32:15 -0500 Subject: [PATCH] *Update dist --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }