diff --git a/lnpeer/peer.go b/lnpeer/peer.go index 99efe845..fb0e743c 100644 --- a/lnpeer/peer.go +++ b/lnpeer/peer.go @@ -33,4 +33,10 @@ type Peer interface { // Address returns the network address of the remote peer. Address() net.Addr + + // QuitSignal is a method that should return a channel which will be + // sent upon or closed once the backing peer exits. This allows callers + // using the interface to cancel any processing in the event the backing + // implementation exits. + QuitSignal() <-chan struct{} }