projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change ChannelManager::wait to be more descriptive
[rust-lightning]
/
background-processor
/
src
/
lib.rs
diff --git
a/background-processor/src/lib.rs
b/background-processor/src/lib.rs
index 00f984580f2556fae736a4b7c153caf23839ff58..1976962bea6ef8c7951be6bd818e638be36ff5e1 100644
(file)
--- 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 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)?;
}
if updates_available {
persist_manager(&*manager)?;
}