*Ensure id is a buffer
This commit is contained in:
parent
5eb86d6acd
commit
3d77943112
|
@ -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