Skip to content

Commit 2d94762

Browse files
committed
f moar cleanup
1 parent b440942 commit 2d94762

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2486,18 +2486,16 @@ where
24862486
return Err(APIError::ChannelUnavailable{err: "Peer for first hop currently disconnected".to_owned()});
24872487
}
24882488
let funding_txo = chan.get().get_funding_txo().unwrap();
2489-
match {
2490-
break_chan_entry!(self, chan.get_mut().send_htlc_and_commit(
2491-
htlc_msat, payment_hash.clone(), htlc_cltv, HTLCSource::OutboundRoute {
2492-
path: path.clone(),
2493-
session_priv: session_priv.clone(),
2494-
first_hop_htlc_msat: htlc_msat,
2495-
payment_id,
2496-
payment_secret: payment_secret.clone(),
2497-
payment_params: payment_params.clone(),
2498-
}, onion_packet, &self.logger),
2499-
chan)
2500-
} {
2489+
let send_res = chan.get_mut().send_htlc_and_commit(htlc_msat, payment_hash.clone(),
2490+
htlc_cltv, HTLCSource::OutboundRoute {
2491+
path: path.clone(),
2492+
session_priv: session_priv.clone(),
2493+
first_hop_htlc_msat: htlc_msat,
2494+
payment_id,
2495+
payment_secret: payment_secret.clone(),
2496+
payment_params: payment_params.clone(),
2497+
}, onion_packet, &self.logger);
2498+
match break_chan_entry!(self, send_res, chan) {
25012499
Some(monitor_update) => {
25022500
let update_id = monitor_update.update_id;
25032501
let update_res = self.chain_monitor.update_channel(funding_txo, monitor_update);

0 commit comments

Comments
 (0)