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