Skip to content

Commit 1543730

Browse files
committed
change method names to not be wait
1 parent 1bb290e commit 1543730

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

background-processor/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ impl BackgroundProcessor {
6666
let handle = thread::spawn(move || -> Result<(), std::io::Error> {
6767
let mut current_time = Instant::now();
6868
loop {
69-
let updates_available = manager.wait_timeout(Duration::from_millis(100));
69+
let updates_available = manager.await_persistable_update_timeout(Duration::from_millis(100));
7070
if updates_available {
7171
persist_manager(&*manager)?;
7272
}

lightning-c-bindings/src/ln/channelmanager.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -757,8 +757,8 @@ pub extern "C" fn ChannelManager_block_disconnected(this_arg: &ChannelManager, h
757757
/// Blocks until ChannelManager needs to be persisted. Only one listener on `wait` is
758758
/// guaranteed to be woken up.
759759
#[no_mangle]
760-
pub extern "C" fn ChannelManager_wait(this_arg: &ChannelManager) {
761-
unsafe { &*this_arg.inner }.wait()
760+
pub extern "C" fn ChannelManager_await_persistable_update(this_arg: &ChannelManager) {
761+
unsafe { &*this_arg.inner }.await_persistable_update()
762762
}
763763

764764
impl From<nativeChannelManager> for crate::ln::msgs::ChannelMessageHandler {

lightning/src/ln/channelmanager.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3300,13 +3300,13 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
33003300
/// guaranteed to be woken up.
33013301
/// Note that the feature `allow_wallclock_use` must be enabled to use this function.
33023302
#[cfg(any(test, feature = "allow_wallclock_use"))]
3303-
pub fn wait_timeout(&self, max_wait: Duration) -> bool {
3303+
pub fn await_persistable_update_timeout(&self, max_wait: Duration) -> bool {
33043304
self.persistence_notifier.wait_timeout(max_wait)
33053305
}
33063306

33073307
/// Blocks until ChannelManager needs to be persisted. Only one listener on `wait` is
33083308
/// guaranteed to be woken up.
3309-
pub fn wait(&self) {
3309+
pub fn await_persistable_update(&self) {
33103310
self.persistence_notifier.wait()
33113311
}
33123312

0 commit comments

Comments
 (0)