diff --git a/network/errors.go b/network/errors.go index f0cf7291e8eb2cf48a1115716fa7f7eaea177e58..fa75f3e5ddf4709935eb23d11209ec86739a08f7 100644 --- a/network/errors.go +++ b/network/errors.go @@ -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")