Remove index.js hack

This commit is contained in:
Jacob Karlsson 2024-06-28 17:29:40 +02:00
parent 451975eca4
commit e16aa8b2a9
1 changed files with 0 additions and 5 deletions

View File

@ -2,7 +2,6 @@ const makeDebug = require('debug')
const MsgV4 = require('pzp-db/msg-v4') const MsgV4 = require('pzp-db/msg-v4')
/** /**
* @typedef {import('pzp-db').RecPresent} Rec
* @typedef {ReturnType<import('pzp-db').init>} PZPDB * @typedef {ReturnType<import('pzp-db').init>} PZPDB
* @typedef {ReturnType<import('pzp-goals').init>} PZPGoal * @typedef {ReturnType<import('pzp-goals').init>} PZPGoal
* @typedef {import('pzp-goals').GoalDSL} GoalDSL * @typedef {import('pzp-goals').GoalDSL} GoalDSL
@ -277,10 +276,6 @@ function initConductor(peer, config) {
peer.gc.start(maxBytes) peer.gc.start(maxBytes)
peer.sync.start() peer.sync.start()
peer.db.onRecordAdded((/** @type {Rec} */ { id: msgID, msg }) => {
peer.sync.start()
})
cb() cb()
}) })
} }