From e16aa8b2a974bf6ec38a3e23e877d19c2de95f30 Mon Sep 17 00:00:00 2001 From: Jacob Karlsson Date: Fri, 28 Jun 2024 17:29:40 +0200 Subject: [PATCH] Remove index.js hack --- lib/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/index.js b/lib/index.js index eef3c6e..13d3e3c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -2,7 +2,6 @@ const makeDebug = require('debug') const MsgV4 = require('pzp-db/msg-v4') /** - * @typedef {import('pzp-db').RecPresent} Rec * @typedef {ReturnType} PZPDB * @typedef {ReturnType} PZPGoal * @typedef {import('pzp-goals').GoalDSL} GoalDSL @@ -277,10 +276,6 @@ function initConductor(peer, config) { peer.gc.start(maxBytes) peer.sync.start() - peer.db.onRecordAdded((/** @type {Rec} */ { id: msgID, msg }) => { - peer.sync.start() - }) - cb() }) }