]> git.bitcoin.ninja Git - rust-lightning/commit
Process messages from peers in parallel in `PeerManager`.
authorMatt Corallo <git@bluematt.me>
Fri, 30 Jul 2021 18:03:28 +0000 (18:03 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 10 May 2022 23:40:20 +0000 (23:40 +0000)
commit7c8b0986984e0882229c239ef2d3b621a61f7d35
tree48f65b1ec118437c4b39bf264a1fb0e77be3166e
parent6418c9ef0dd68e87444b690d0583e8a22cf486dc
Process messages from peers in parallel in `PeerManager`.

This adds the required locking to process messages from different
peers simultaneously in `PeerManager`. Note that channel messages
are still processed under a global lock in `ChannelManager`, and
most work is still processed under a global lock in gossip message
handling, but parallelizing message deserialization and message
decryption is somewhat helpful.
lightning/src/ln/peer_handler.rs