Compare commits

...

2 Commits

Author SHA1 Message Date
Derrick Hammer 6bf6ea3595
*Update dist 2022-12-17 11:38:31 -05:00
Derrick Hammer c476de47b6
*Need to convert to buffer 2022-12-17 11:38:14 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -293,7 +293,7 @@ class DHTCache extends events_1.default {
continue;
}
if (!this.connectedTo.has(id)) {
this.swarm.joinPeer(id);
this.swarm.joinPeer(b4a_1.default.from(id, "hex"));
}
for (const connection of connectedTo) {
const peer = b4a_1.default.from(connection);

View File

@ -405,7 +405,7 @@ export default class DHTCache extends EventEmitter {
}
if (!this.connectedTo.has(id)) {
this.swarm.joinPeer(id);
this.swarm.joinPeer(b4a.from(id, "hex"));
}
for (const connection of connectedTo) {