Change ChannelManager::wait to be more descriptive
[rust-lightning] / background-processor / src / lib.rs
index 00f984580f2556fae736a4b7c153caf23839ff58..1976962bea6ef8c7951be6bd818e638be36ff5e1 100644 (file)
@@ -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)?;
                                }