From ced4eacb49a793c232a2945b454041728073a6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?22388o=E2=9A=A1=EF=B8=8F?= <83122757+22388o@users.noreply.github.com> Date: Mon, 8 May 2023 14:47:47 -0300 Subject: [PATCH] Update services.js --- services.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services.js b/services.js index 86b1aa0..03b5963 100644 --- a/services.js +++ b/services.js @@ -8,12 +8,12 @@ const api = require('coin') // Create a new Hypercore instance const feed = new Hypercore('./bitcoin-pairs-feed', { - valueEncoding: 'json', 'coin.json' + valueEncoding: 'coin.json' secretKey: crypto.randomBytes(32), }) // Create a new Hyperbee instance const db = new Hyperbee(feed, { keyEncoding: 'utf-8', - valueEncoding: 'json', + valueEncoding: 'con.json' })