aboutsummaryrefslogtreecommitdiff
path: root/fasthttputil
diff options
context:
space:
mode:
authorGravatar Andy Pan <panjf2000@gmail.com> 2020-01-12 19:57:42 +0800
committerGravatar Erik Dubbelboer <erik@dubbelboer.com> 2020-01-12 12:57:42 +0100
commit59b28fe0e54664073ac4e422511ca8af718b26b0 (patch)
tree0cd033c59367fd2829f3331fdd7ea8af9c49cf4a /fasthttputil
parentForward context in fasthttpadaptor (#720) (diff)
downloadfasthttp-59b28fe0e54664073ac4e422511ca8af718b26b0.tar.gz
fasthttp-59b28fe0e54664073ac4e422511ca8af718b26b0.tar.bz2
fasthttp-59b28fe0e54664073ac4e422511ca8af718b26b0.zip
Resolve code issues from goreportcard.com (#725)
Diffstat (limited to 'fasthttputil')
-rw-r--r--fasthttputil/inmemory_listener.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/fasthttputil/inmemory_listener.go b/fasthttputil/inmemory_listener.go
index fd41fc8..9997d1c 100644
--- a/fasthttputil/inmemory_listener.go
+++ b/fasthttputil/inmemory_listener.go
@@ -6,6 +6,7 @@ import (
"sync"
)
+// ErrInmemoryListenerClosed indicates that the InmemoryListener is already closed.
var ErrInmemoryListenerClosed = errors.New("InmemoryListener is already closed: use of closed network connection")
// InmemoryListener provides in-memory dialer<->net.Listener implementation.