Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
p2p
go-p2p-transport-upgrader
Commits
b43acf23
Unverified
Commit
b43acf23
authored
Apr 22, 2021
by
Steven Allen
Committed by
GitHub
Apr 22, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74 from libp2p/fix-staticcheck
fix staticcheck
parents
3acbc8bf
3386140c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
listener.go
listener.go
+1
-6
No files found.
listener.go
View file @
b43acf23
...
@@ -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
.
Warn
ingf
(
"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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment