1
0
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:
vyzo 2021-02-04 00:10:39 +02:00
parent 7eee7c00a6
commit 8e949a777f

View File

@ -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")