From 1a7165acb1d471eaeea7ce806a7cf8a121b82a82 Mon Sep 17 00:00:00 2001 From: tycho garen Date: Mon, 20 Jun 2022 10:44:05 -0400 Subject: [PATCH] wake more --- internal/p2p/router.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/p2p/router.go b/internal/p2p/router.go index 1bfd014fc..ecb75dfa4 100644 --- a/internal/p2p/router.go +++ b/internal/p2p/router.go @@ -570,6 +570,10 @@ func (r *Router) dialSleep(ctx context.Context) { case <-timer.C: } + if !r.peerManager.HasMaxPeerCapacity() { + r.peerManager.dialWaker.Wake() + } + return }