Remove index.js hack
This commit is contained in:
parent
451975eca4
commit
e16aa8b2a9
|
@ -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()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue