mirror of
https://github.com/libp2p/go-libp2p-core.git
synced 2025-03-26 13:00:07 +08:00
add ErrTransientConn error
This commit is contained in:
parent
7eee7c00a6
commit
8e949a777f
@ -8,3 +8,7 @@ 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")
|
||||
|
||||
// ErrTransientConn is returned when attempting to open a stream to a peer with only a transient
|
||||
// connection, without specifying the UseTransient option.
|
||||
var ErrTransientConn = errors.New("transient connection to peer")
|
||||
|
Loading…
Reference in New Issue
Block a user