discovery: pass peer quit signal to ProcessQueryMsg
This commit passes the peer's quit signal to the gossipSyncer when attempt to hand off gossip query messages. This allows a rate-limited peer's read handler to break out immediately, which would otherwise remain stuck until the rate-limited gossip syncer pulled the message.
This commit is contained in:
2 files changed
+3
-4
No files matched your search
@@ -478,7 +478,7 @@ func (d *AuthenticatedGossiper) ProcessRemoteAnnouncement(msg lnwire.Message,
|
||||
|
||||
// If we've found the message target, then we'll dispatch the
|
||||
// message directly to it.
|
||||
syncer.ProcessQueryMsg(m)
|
||||
syncer.ProcessQueryMsg(m, peer.QuitSignal())
|
||||
|
||||
errChan <- nil
|
||||
return errChan
|
||||
|
||||
Reference in new issue
Block a user