Avoid the peers write lock unless we need it in timer_tick_occurred
authorMatt Corallo <git@bluematt.me>
Wed, 6 Oct 2021 06:10:01 +0000 (06:10 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 10 May 2022 23:40:20 +0000 (23:40 +0000)
commit4f50a94a3f6b9f9b2f047d319983f10ed0f3e88d
treee083575b7768ae57ae9d78592efe47fcbe897056
parenta5adda18dc2c05959c107a0b2769730680d32d18
Avoid the peers write lock unless we need it in timer_tick_occurred

Similar to the previous commit, this avoids "blocking the world" on
every timer tick unless we need to disconnect peers.
lightning/src/ln/peer_handler.rs