Browse Source

Merge pull request #74 from libp2p/fix-staticcheck

fix staticcheck
pull/1463/head
Steven Allen 4 years ago
committed by GitHub
parent
commit
8acc055e8e
  1. 7
      p2p/net/upgrader/listener.go

7
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,

Loading…
Cancel
Save