mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-13 14:26:02 +01:00
This commit slightly optimizes the process of broadcasting a message to a list of peers, and also sending a set of messages to a target peer. When broadcasting a message to a set of target peers, we now launch a goroutine for each send as to not block the ChannelRouter on an individual send. When sending a set of messages to a target peer, we now give up the mutex as soon as we’ve access the map, rather than holding onto it until the sending is complete.
56 KiB
56 KiB