fix: set sublevel valueEncoding to buffer

This commit is contained in:
Derrick Hammer 2023-09-01 23:09:13 -04:00
parent d461b917e6
commit a6c02bc772
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,9 @@ export class S5Node {
keyPair: this._nodeConfig.keyPair, keyPair: this._nodeConfig.keyPair,
db: this._nodeConfig.db, db: this._nodeConfig.db,
logger: this._nodeConfig.logger ?? DEFAULT_LOGGER, logger: this._nodeConfig.logger ?? DEFAULT_LOGGER,
cacheDb: this._nodeConfig.db.sublevel("s5-object-cache", {}), cacheDb: this._nodeConfig.db.sublevel("s5-object-cache", {
valueEncoding: "buffer",
}),
services: {} as any, services: {} as any,
p2p: this._nodeConfig.p2p, p2p: this._nodeConfig.p2p,
}; };