mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-07-09 05:52:29 +00:00
chore: Do not catch any error when sendHeads.
This commit is contained in:
parent
e1a163bce7
commit
78dab50eb8
@ -152,14 +152,10 @@ const Sync = async ({ ipfs, log, events, onSynced, start, timeout }) => {
|
|||||||
|
|
||||||
const sendHeads = async (source) => {
|
const sendHeads = async (source) => {
|
||||||
return (async function * () {
|
return (async function * () {
|
||||||
try {
|
|
||||||
const heads = await log.heads()
|
const heads = await log.heads()
|
||||||
for await (const { bytes } of heads) {
|
for await (const { bytes } of heads) {
|
||||||
yield bytes
|
yield bytes
|
||||||
}
|
}
|
||||||
} catch (err) {
|
|
||||||
console.log('onPeerJoined', ipfs.libp2p.peerId.toString())
|
|
||||||
}
|
|
||||||
})()
|
})()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user