Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

fix staticcheck #74

Merged
merged 1 commit into from
Apr 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ import (

var log = logging.Logger("stream-upgrader")

type connErr struct {
conn transport.CapableConn
err error
}

type listener struct {
manet.Listener

Expand Down Expand Up @@ -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,
Expand Down