fix: set sublevel valueEncoding to buffer
This commit is contained in:
parent
e53fd821fe
commit
384e941b09
|
@ -87,7 +87,9 @@ export class P2PService extends EventEmitter {
|
|||
|
||||
async init(): Promise<void> {
|
||||
this.localNodeId = new NodeId(this.nodeKeyPair.publicKey); // Define the NodeId constructor
|
||||
this.nodesDb = this._node.db.sublevel<string, Uint8Array>("s5-nodes", {});
|
||||
this.nodesDb = this._node.db.sublevel<string, Uint8Array>("s5-nodes", {
|
||||
valueEncoding: "buffer",
|
||||
});
|
||||
}
|
||||
|
||||
async start(): Promise<void> {
|
||||
|
|
|
@ -35,7 +35,9 @@ export class RegistryService {
|
|||
}
|
||||
|
||||
async init(): Promise<void> {
|
||||
this.db = this.node.db.sublevel<string, Uint8Array>("s5-registry-db", {});
|
||||
this.db = this.node.db.sublevel<string, Uint8Array>("s5-registry-db", {
|
||||
valueEncoding: "buffer",
|
||||
});
|
||||
}
|
||||
|
||||
async set(
|
||||
|
|
Loading…
Reference in New Issue