From e78677882d2bcbddcad4a788fc6eea2e825b4196 Mon Sep 17 00:00:00 2001 From: Max Date: Sun, 25 Sep 2022 23:40:42 +0200 Subject: [PATCH] packages/hyprspace: dial peers faster --- packages/networking/hyprspace/cli/up.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/networking/hyprspace/cli/up.go b/packages/networking/hyprspace/cli/up.go index 535035d..cb23822 100644 --- a/packages/networking/hyprspace/cli/up.go +++ b/packages/networking/hyprspace/cli/up.go @@ -372,7 +372,7 @@ func prettyDiscovery(ctx context.Context, node host.Host, peerTable map[string]p if err != nil && (strings.HasPrefix(err.Error(), "failed to dial") || strings.HasPrefix(err.Error(), "no addresses")) { // Attempt to connect to peers slowly when they aren't found. - time.Sleep(5 * time.Second) + time.Sleep(1 * time.Second) continue } if err == nil {