From 16dce8a67690eda457b5d983f78feb4602c5c393 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 2 Sep 2021 20:51:57 +0100 Subject: [PATCH] fix build --- p2p/net/connmgr/connmgr.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/p2p/net/connmgr/connmgr.go b/p2p/net/connmgr/connmgr.go index d8f44314..51b6592a 100644 --- a/p2p/net/connmgr/connmgr.go +++ b/p2p/net/connmgr/connmgr.go @@ -238,9 +238,9 @@ func (cm *BasicConnMgr) TrimOpenConns(ctx context.Context) { } func (cm *BasicConnMgr) background() { - interval := cm.gracePeriod / 2 - if interval < cm.silencePeriod { - interval = cm.silencePeriod + interval := cm.cfg.gracePeriod / 2 + if interval < cm.cfg.silencePeriod { + interval = cm.cfg.silencePeriod } if interval < 10*time.Second { interval = 10 * time.Second