Commit 3386140c authored by Marten Seemann's avatar Marten Seemann

fix staticcheck

parent 3acbc8bf
...@@ -13,11 +13,6 @@ import ( ...@@ -13,11 +13,6 @@ import (
var log = logging.Logger("stream-upgrader") var log = logging.Logger("stream-upgrader")
type connErr struct {
conn transport.CapableConn
err error
}
type listener struct { type listener struct {
manet.Listener manet.Listener
...@@ -137,7 +132,7 @@ func (l *listener) handleIncoming() { ...@@ -137,7 +132,7 @@ func (l *listener) handleIncoming() {
case <-ctx.Done(): case <-ctx.Done():
if l.ctx.Err() == nil { if l.ctx.Err() == nil {
// Listener *not* closed but the accept timeout expired. // 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, // Wait on the context with a timeout. This way,
// if we stop accepting connections for some reason, // if we stop accepting connections for some reason,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment