1
0
mirror of https://github.com/libp2p/go-libp2p-core.git synced 2025-04-17 15:40:37 +08:00
go-libp2p-core/network/errors.go
Yusef Napora c1c817c31a Godocs for core packages ()
Godocs for core packages.
2019-05-16 12:34:10 +01:00

11 lines
382 B
Go

package network
import "errors"
// ErrNoRemoteAddrs is returned when there are no addresses associated with a peer during a dial.
var ErrNoRemoteAddrs = errors.New("no remote addresses")
// ErrNoConn is returned when attempting to open a stream to a peer with the NoDial
// option and no usable connection is available.
var ErrNoConn = errors.New("no usable connection to peer")