From 83692b82258a8b187684bbcd5292461ce7c82753 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 26 Jul 2022 21:47:13 -0400 Subject: [PATCH] *Update dist --- dist/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index a0fd645..c8b7fc1 100644 --- a/dist/index.js +++ b/dist/index.js @@ -89,9 +89,9 @@ export default class DHT { return node.connect(pubkey, options); } async fillConnections() { - let available = [...this._relays.keys()].filter((x) => [...this._activeRelays.keys()].includes(x)); + let available = [...this._relays.keys()].filter((x) => ![...this._activeRelays.keys()].includes(x)); let relayPromises = []; - if (0 > available.length) { + if (0 === available.length) { return; } while (this._activeRelays.size <=