mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-17 22:44:21 +01:00
remove-redundant-replicate-corestore (#171)
This commit is contained in:
@@ -102,7 +102,6 @@ await core.ready()
|
|||||||
|
|
||||||
const foundPeers = core.findingPeers()
|
const foundPeers = core.findingPeers()
|
||||||
swarm.join(core.discoveryKey)
|
swarm.join(core.discoveryKey)
|
||||||
swarm.on('connection', conn => core.replicate(conn))
|
|
||||||
swarm.flush().then(() => foundPeers())
|
swarm.flush().then(() => foundPeers())
|
||||||
|
|
||||||
// update the meta-data of the hypercore instance
|
// update the meta-data of the hypercore instance
|
||||||
|
|||||||
Reference in New Issue
Block a user