discovery+routing: reduce number of active validation barrier jobs
In order to reduce high CPU utilization during the initial network view sync, we slash down the total number of active in-flight jobs that can be launched.
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -1148,7 +1148,7 @@ func (p *peer) queueMsg(msg lnwire.Message, errChan chan error) {
|
||||
select {
|
||||
case p.outgoingQueue <- outgoinMsg{msg, errChan}:
|
||||
case <-p.quit:
|
||||
peerLog.Debugf("Peer shutting down, could not enqueue msg.")
|
||||
peerLog.Tracef("Peer shutting down, could not enqueue msg.")
|
||||
if errChan != nil {
|
||||
errChan <- fmt.Errorf("peer shutting down")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user