Skip to content

Commit 3037475

Browse files
committed
f rename variable for clarity
1 parent 80fa9e2 commit 3037475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4854,15 +4854,15 @@ where
48544854
let pending_msg_events = &mut channel_state.pending_msg_events;
48554855
channel_state.by_id.retain(|_, channel| {
48564856
let res = f(channel);
4857-
if let Ok((chan_res, mut timed_out_pending_htlcs, announcement_sigs)) = res {
4857+
if let Ok((funding_locked_opt, mut timed_out_pending_htlcs, announcement_sigs)) = res {
48584858
for (source, payment_hash) in timed_out_pending_htlcs.drain(..) {
48594859
let chan_update = self.get_channel_update_for_unicast(&channel).map(|u| u.encode_with_len()).unwrap(); // Cannot add/recv HTLCs before we have a short_id so unwrap is safe
48604860
timed_out_htlcs.push((source, payment_hash, HTLCFailReason::Reason {
48614861
failure_code: 0x1000 | 14, // expiry_too_soon, or at least it is now
48624862
data: chan_update,
48634863
}));
48644864
}
4865-
if let Some(funding_locked) = chan_res {
4865+
if let Some(funding_locked) = funding_locked_opt {
48664866
pending_msg_events.push(events::MessageSendEvent::SendFundingLocked {
48674867
node_id: channel.get_counterparty_node_id(),
48684868
msg: funding_locked,

0 commit comments

Comments
 (0)