Compare commits
2 Commits
5eb86d6acd
...
dccdbbd13d
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | dccdbbd13d | |
Derrick Hammer | 3d77943112 |
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue