Skip to content

Commit 5b51a3a

Browse files
committed
f avoid "leak" which is highly overloaded
1 parent 4f41003 commit 5b51a3a

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
@@ -7582,9 +7582,9 @@ where
75827582
if let Some(preimage) = preimage_opt {
75837583
let pending_events = Mutex::new(pending_events_read);
75847584
// Note that we set `from_onchain` to "false" here,
7585-
// deliberately leaking the pending payment. Given it should
7586-
// only occur when we have a channel we're force-closing for
7587-
// being stale that's okay.
7585+
// deliberately keeping the pending payment around forever.
7586+
// Given it should only occur when we have a channel we're
7587+
// force-closing for being stale that's okay.
75887588
pending_outbounds.claim_htlc(payment_id, preimage, session_priv, path, false, &pending_events, &args.logger);
75897589
pending_events_read = pending_events.into_inner().unwrap();
75907590
}

0 commit comments

Comments
 (0)