Skip to content

Commit 9fc2c35

Browse files
committed
f Adjust handlers to use res post-fmt
1 parent fcaff49 commit 9fc2c35

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12667,21 +12667,15 @@ where
1266712667
#[cfg(simple_close)]
1266812668
fn handle_closing_complete(&self, counterparty_node_id: PublicKey, msg: msgs::ClosingComplete) {
1266912669
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
12670-
let _ = handle_error!(
12671-
self,
12672-
self.internal_closing_complete(counterparty_node_id, msg),
12673-
counterparty_node_id
12674-
);
12670+
let res = self.internal_closing_complete(counterparty_node_id, msg);
12671+
let _ = handle_error!(self, res, counterparty_node_id);
1267512672
}
1267612673

1267712674
#[cfg(simple_close)]
1267812675
fn handle_closing_sig(&self, counterparty_node_id: PublicKey, msg: msgs::ClosingSig) {
1267912676
let _persistence_guard = PersistenceNotifierGuard::notify_on_drop(self);
12680-
let _ = handle_error!(
12681-
self,
12682-
self.internal_closing_sig(counterparty_node_id, msg),
12683-
counterparty_node_id
12684-
);
12677+
let res = self.internal_closing_sig(counterparty_node_id, msg);
12678+
let _ = handle_error!(self, res, counterparty_node_id);
1268512679
}
1268612680

1268712681
fn handle_update_add_htlc(&self, counterparty_node_id: PublicKey, msg: &msgs::UpdateAddHTLC) {

0 commit comments

Comments
 (0)