From 79b3cfc6ad02ecc76fe23a3c3ff2d0b32a0ae4a8 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Wed, 29 Dec 2021 10:55:48 +0100 Subject: [PATCH] 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. --- 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 977b13f7..5e71d7ed 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') }