Skip to content

Commit f128b85

Browse files
committed
Rustfmt ChannelManager::process_background_events
1 parent 7e84268 commit f128b85

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

lightning/src/ln/channelmanager.rs

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8140,9 +8140,11 @@ impl<
81408140
/// Free the background events, generally called from [`PersistenceNotifierGuard`] constructors.
81418141
///
81428142
/// Expects the caller to have a total_consistency_lock read lock.
8143-
#[rustfmt::skip]
81448143
fn process_background_events(&self) -> NotifyOption {
8145-
debug_assert_ne!(self.total_consistency_lock.held_by_thread(), LockHeldState::NotHeldByThread);
8144+
debug_assert_ne!(
8145+
self.total_consistency_lock.held_by_thread(),
8146+
LockHeldState::NotHeldByThread
8147+
);
81468148

81478149
self.background_events_processed_since_startup.store(true, Ordering::Release);
81488150

@@ -8154,8 +8156,18 @@ impl<
81548156

81558157
for event in background_events.drain(..) {
81568158
match event {
8157-
BackgroundEvent::MonitorUpdateRegeneratedOnStartup { counterparty_node_id, funding_txo, channel_id, update } => {
8158-
self.apply_post_close_monitor_update(counterparty_node_id, channel_id, funding_txo, update);
8159+
BackgroundEvent::MonitorUpdateRegeneratedOnStartup {
8160+
counterparty_node_id,
8161+
funding_txo,
8162+
channel_id,
8163+
update,
8164+
} => {
8165+
self.apply_post_close_monitor_update(
8166+
counterparty_node_id,
8167+
channel_id,
8168+
funding_txo,
8169+
update,
8170+
);
81598171
},
81608172
BackgroundEvent::MonitorUpdatesComplete {
81618173
counterparty_node_id,

0 commit comments

Comments
 (0)