Skip to content

Commit 0c6f20f

Browse files
committed
f avoid "leak" which is highly overloaded
1 parent 9117111 commit 0c6f20f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7538,9 +7538,9 @@ where
75387538
if let Some(preimage) = preimage_opt {
75397539
let pending_events = Mutex::new(pending_events_read);
75407540
// Note that we set `from_onchain` to "false" here,
7541-
// deliberately leaking the pending payment. Given it should
7542-
// only occur when we have a channel we're force-closing for
7543-
// being stale that's okay.
7541+
// deliberately keeping the pending payment around forever.
7542+
// Given it should only occur when we have a channel we're
7543+
// force-closing for being stale that's okay.
75447544
pending_outbounds.claim_htlc(payment_id, preimage, session_priv, path, false, &pending_events, &args.logger);
75457545
pending_events_read = pending_events.into_inner().unwrap();
75467546
}

0 commit comments

Comments
 (0)