Compare commits

..

2 Commits

Author SHA1 Message Date
Derrick Hammer dccdbbd13d
*Update dist 2022-11-26 18:43:59 -05:00
Derrick Hammer 3d77943112
*Ensure id is a buffer 2022-11-26 18:43:35 -05:00
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View File

@ -27,7 +27,7 @@ class DHTCache extends events_1.default {
super();
if (!id)
throw new TypeError("Must provide id for self");
this.id = id;
this.id = b4a_1.default.from(id);
this.bootstrapped = false;
this.graph = new jsnetworkx_1.DiGraph();
this.connectedTo = new Set();

View File

@ -42,7 +42,7 @@ export default class DHTCache extends EventEmitter {
super();
if (!id) throw new TypeError("Must provide id for self");
this.id = id;
this.id = b4a.from(id) as Buffer;
this.bootstrapped = false;
this.graph = new DiGraph();
this.connectedTo = new Set();