*_relays is a map

This commit is contained in:
Derrick Hammer 2022-07-26 21:39:16 -04:00
parent 377b9548cf
commit c7b64064ad
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export default class DHT {
return false;
}
this._relays[pubkey] = `wss://${domain}:${port}/`;
this._relays.set(pubkey, `wss://${domain}:${port}/`);
if (this._inited) {
await this.fillConnections();