mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-11 07:03:32 +08:00
style(net) rm unused error
having an error return value makes the interface a bit confusing to use. Just ponder... What would an error returned from a predicate function mean? License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:
@ -27,7 +27,7 @@ type Network interface {
|
||||
ClosePeer(peer.Peer) error
|
||||
|
||||
// IsConnected returns whether a connection to given peer exists.
|
||||
IsConnected(peer.Peer) (bool, error)
|
||||
IsConnected(peer.Peer) bool
|
||||
|
||||
// GetProtocols returns the protocols registered in the network.
|
||||
GetProtocols() *mux.ProtocolMap
|
||||
|
Reference in New Issue
Block a user