From 8739d56d41f4d2ffbdafc7227a65c53f2ce79e60 Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Fri, 23 Apr 2021 10:52:30 +0700 Subject: [PATCH] fix staticcheck --- p2p/net/upgrader/listener.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/p2p/net/upgrader/listener.go b/p2p/net/upgrader/listener.go index f9d23f623..f03e42d8d 100644 --- a/p2p/net/upgrader/listener.go +++ b/p2p/net/upgrader/listener.go @@ -13,11 +13,6 @@ import ( var log = logging.Logger("stream-upgrader") -type connErr struct { - conn transport.CapableConn - err error -} - type listener struct { manet.Listener @@ -137,7 +132,7 @@ func (l *listener) handleIncoming() { case <-ctx.Done(): if l.ctx.Err() == nil { // Listener *not* closed but the accept timeout expired. - log.Warningf("listener dropped connection due to slow accept") + log.Warn("listener dropped connection due to slow accept") } // Wait on the context with a timeout. This way, // if we stop accepting connections for some reason,