mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-07 14:46:37 +00:00
chore: Do not catch any error when onPeerJoined.
This commit is contained in:
parent
b069e76f91
commit
d05cd87b5c
@ -142,12 +142,8 @@ const Sync = async ({ ipfs, log, events, onSynced, start, timeout }) => {
|
|||||||
let started = false
|
let started = false
|
||||||
|
|
||||||
const onPeerJoined = async (peerId) => {
|
const onPeerJoined = async (peerId) => {
|
||||||
try {
|
const heads = await log.heads()
|
||||||
const heads = await log.heads()
|
events.emit('join', peerId, heads)
|
||||||
events.emit('join', peerId, heads)
|
|
||||||
} catch (err) {
|
|
||||||
console.log('onPeerJoined', ipfs.libp2p.peerId.toString(), err.stack)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const sendHeads = async (source) => {
|
const sendHeads = async (source) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user