From a348299d42758d19ac2dae290cf5f8a6e73ca97c Mon Sep 17 00:00:00 2001 From: achingbrain Date: Mon, 27 Dec 2021 08:00:34 +0100 Subject: [PATCH] fix: do not wait for autodial start 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. --- src/connection-manager/auto-dialler.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/connection-manager/auto-dialler.js b/src/connection-manager/auto-dialler.js index 977b13f72b..5e71d7edcb 100644 --- a/src/connection-manager/auto-dialler.js +++ b/src/connection-manager/auto-dialler.js @@ -57,7 +57,9 @@ class AutoDialler { } this._running = true - this._autoDial() + this._autoDial().catch(err => { + log.error('could start autodial', err) + }) log('started') }