*Update dist

This commit is contained in:
Derrick Hammer 2022-07-26 21:47:13 -04:00
parent b52bdcdeb2
commit 83692b8225
1 changed files with 2 additions and 2 deletions

4
dist/index.js vendored
View File

@ -89,9 +89,9 @@ export default class DHT {
return node.connect(pubkey, options); return node.connect(pubkey, options);
} }
async fillConnections() { 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 = []; let relayPromises = [];
if (0 > available.length) { if (0 === available.length) {
return; return;
} }
while (this._activeRelays.size <= while (this._activeRelays.size <=