]> git.bitcoin.ninja Git - rust-lightning/commit
Use the user-provided `SleepFuture` for interval checks in BP
authorMatt Corallo <git@bluematt.me>
Tue, 17 Jan 2023 00:03:43 +0000 (00:03 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 17 Jan 2023 00:26:21 +0000 (00:26 +0000)
commite59b3847a363afba5d30e1f1271341e3163f7591
treea63469487adb408af397fb35c9fc6ac62a585704
parentd308710d4f820e14eea68f95926bf1795a7bc843
Use the user-provided `SleepFuture` for interval checks in BP

`background-processor` does a number of jobs on various timers.
Instead of doing those by interrogating `std::time::Instant`, this
change swaps to using the existing user-provided sleep future.

Fixes #1864.
lightning-background-processor/src/lib.rs