mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-03-30 15:08:28 +00:00
Update sync.js
Remove console.error, since the error is already caught and reported by events.emit('error') afterwards
This commit is contained in:
parent
28b3e807de
commit
d504e0f7ba
@ -194,7 +194,6 @@ const Sync = async ({ ipfs, log, events, onSynced, start, timeout }) => {
|
||||
const stream = await libp2p.dialProtocol(remotePeer, headsSyncAddress, { signal })
|
||||
await pipe(sendHeads, stream, receiveHeads(peerId))
|
||||
} catch (e) {
|
||||
console.error(e)
|
||||
peers.delete(peerId)
|
||||
if (e.name === 'UnsupportedProtocolError') {
|
||||
// Skip peer, they don't have this database currently
|
||||
|
Loading…
x
Reference in New Issue
Block a user