From 798821db17c3f17fa8564de9d333857e0ada11ec Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 25 Jul 2023 11:05:58 -0700 Subject: [PATCH] peer: remove unused queueQuit channel In this commit, we remove an unused `queueQuit` channel. --- peer/brontide.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/peer/brontide.go b/peer/brontide.go index 625749b64..0f1fc9bc8 100644 --- a/peer/brontide.go +++ b/peer/brontide.go @@ -469,9 +469,8 @@ type Brontide struct { // potentially holding lots of un-consumed events. channelEventClient *subscribe.Client - queueQuit chan struct{} - quit chan struct{} - wg sync.WaitGroup + quit chan struct{} + wg sync.WaitGroup // log is a peer-specific logging instance. log btclog.Logger @@ -501,7 +500,6 @@ func NewBrontide(cfg Config) *Brontide { linkFailures: make(chan linkFailureReport), chanCloseMsgs: make(chan *closeMsg), resentChanSyncMsg: make(map[lnwire.ChannelID]struct{}), - queueQuit: make(chan struct{}), quit: make(chan struct{}), log: build.NewPrefixLog(logPrefix, peerLog), }