ca358e9673
As a prepatory step to making gossip replies synchronous, we will move the ErrPeerExiting error into the lnpeer package so that it can be imported by the discovery package. With synchronous sends, this error can now be detected and handled by goroutines in the syncer, and cause them to exit instead of continue to sending backlogs.
9 lines
155 B
Go
9 lines
155 B
Go
package lnpeer
|
|
|
|
import "fmt"
|
|
|
|
var (
|
|
// ErrPeerExiting signals that the peer received a disconnect request.
|
|
ErrPeerExiting = fmt.Errorf("peer exiting")
|
|
)
|