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-kad-dht
Commits
30942550
Commit
30942550
authored
Jan 18, 2017
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
degrade dht version checking EOF error to warning
parent
68f4a6e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
notif.go
notif.go
+6
-1
No files found.
notif.go
View file @
30942550
package
dht
import
(
"io"
inet
"github.com/libp2p/go-libp2p-net"
ma
"github.com/multiformats/go-multiaddr"
mstream
"github.com/multiformats/go-multistream"
...
...
@@ -33,9 +35,12 @@ func (nn *netNotifiee) Connected(n inet.Network, v inet.Conn) {
dht
.
Update
(
dht
.
Context
(),
v
.
RemotePeer
())
case
mstream
.
ErrNotSupported
:
// Client mode only, don't bother adding them to our routing table
case
io
.
EOF
:
// This is kindof an error, but it happens someone often so make it a warning
log
.
Warningf
(
"checking dht client type: %s"
,
err
)
default
:
// real error? thats odd
log
.
Errorf
(
"checking dht client type: %
#v
"
,
err
)
log
.
Errorf
(
"checking dht client type: %
s
"
,
err
)
}
}
...
...
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