From 8e949a777fec3b13d6230adc2d6ff9858d20bd5a Mon Sep 17 00:00:00 2001 From: vyzo Date: Thu, 4 Feb 2021 00:10:39 +0200 Subject: [PATCH] add ErrTransientConn error --- network/errors.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/network/errors.go b/network/errors.go index f0cf729..fa75f3e 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") -- GitLab