mirror of
https://github.com/fluencelabs/go-libp2p-kad-dht
synced 2025-04-24 22:32:13 +00:00
silence context canceled error
Not really an error.
This commit is contained in:
parent
076ee4dbc5
commit
6289449066
2
notif.go
2
notif.go
@ -74,6 +74,8 @@ func (nn *netNotifiee) testConnection(ctx context.Context, v inet.Conn) {
|
||||
// Connection died but we may still have *an* open connection (context not canceled) so try again.
|
||||
continue
|
||||
}
|
||||
case context.Canceled:
|
||||
// Context canceled while connecting.
|
||||
case mstream.ErrNotSupported:
|
||||
// Client mode only, don't bother adding them to our routing table
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user