mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 02:22:14 +00:00
fix: do not wait for autodial start (#1089)
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.
This commit is contained in:
parent
f18fc80b70
commit
79b3cfc6ad
@ -57,7 +57,9 @@ class AutoDialler {
|
||||
}
|
||||
|
||||
this._running = true
|
||||
this._autoDial()
|
||||
this._autoDial().catch(err => {
|
||||
log.error('could start autodial', err)
|
||||
})
|
||||
log('started')
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user