X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=background-processor%2Fsrc%2Flib.rs;h=1976962bea6ef8c7951be6bd818e638be36ff5e1;hb=578f8b72e2e5a04726fd1d5b63f9642bfc74a4b7;hp=00f984580f2556fae736a4b7c153caf23839ff58;hpb=6742343319dda2bb80da8e4156f67ca95f19b18b;p=rust-lightning diff --git a/background-processor/src/lib.rs b/background-processor/src/lib.rs index 00f98458..1976962b 100644 --- a/background-processor/src/lib.rs +++ b/background-processor/src/lib.rs @@ -66,7 +66,7 @@ impl BackgroundProcessor { let handle = thread::spawn(move || -> Result<(), std::io::Error> { let mut current_time = Instant::now(); loop { - let updates_available = manager.wait_timeout(Duration::from_millis(100)); + let updates_available = manager.await_persistable_update_timeout(Duration::from_millis(100)); if updates_available { persist_manager(&*manager)?; }