From a6c02bc772d84068b2529a656cd2490d3da66ea1 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Sep 2023 23:09:13 -0400 Subject: [PATCH] fix: set sublevel valueEncoding to buffer --- src/node.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/node.ts b/src/node.ts index bed4541..30efa90 100644 --- a/src/node.ts +++ b/src/node.ts @@ -63,7 +63,9 @@ export class S5Node { keyPair: this._nodeConfig.keyPair, db: this._nodeConfig.db, 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, p2p: this._nodeConfig.p2p, };