]> git.bitcoin.ninja Git - rust-lightning/commit
[net-tokio] Call PeerManager::process_events without blocking reads
authorMatt Corallo <git@bluematt.me>
Wed, 6 Oct 2021 04:29:19 +0000 (04:29 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 10 May 2022 23:40:20 +0000 (23:40 +0000)
commitb1550524cfe2689e3743ddfc0a78527d26de8613
tree6e765663b022851894f995f6e85eaa587097319f
parenta731efcb6822609b400170bce54d59addc5821c3
[net-tokio] Call PeerManager::process_events without blocking reads

Unlike very ancient versions of lightning-net-tokio, this does not
rely on a single global process_events future, but instead has one
per connection. This could still cause significant contention, so
we'll ensure only two process_events calls can exist at once in
the next few commits.
lightning-net-tokio/src/lib.rs