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:
Alex Potsides 2021-12-29 10:55:48 +01:00 committed by GitHub
parent f18fc80b70
commit 79b3cfc6ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,9 @@ class AutoDialler {
}
this._running = true
this._autoDial()
this._autoDial().catch(err => {
log.error('could start autodial', err)
})
log('started')
}