Skip to content

Commit

Permalink
fix: do not wait for autodial start (#1089)
Browse files Browse the repository at this point in the history
When we've previously seen loads of peers and stored them in the
datastore we'll try to dial them as part of starting the autodial
component.

If we or our peers have bad network connections this can make
starting a libp2p node take ages so don't wait for a round of auto
dialing before considering the component started.
  • Loading branch information
achingbrain authored Dec 29, 2021
1 parent f18fc80 commit 79b3cfc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/connection-manager/auto-dialler.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ class AutoDialler {
}

this._running = true
this._autoDial()
this._autoDial().catch(err => {
log.error('could start autodial', err)
})
log('started')
}

Expand Down

0 comments on commit 79b3cfc

Please sign in to comment.