Skip to content

Commit 1960916

Browse files
committed
f engrish
1 parent db49bbf commit 1960916

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3635,8 +3635,9 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
36353635
// from the map. However, if we did that immediately when the last payment HTLC is claimed,
36363636
// this could race the user making a duplicate send_payment call and our idempotency
36373637
// guarantees would be violated. Instead, we wait a few timer ticks to do the actual
3638-
// removal. This should be more than sufficient to ensure any `send_payment` calls that
3639-
// were made at the same time the `PaymentSent` event was being processed complete.
3638+
// removal. This should be more than sufficient to ensure the idempotency of any
3639+
// `send_payment` calls that were made at the same time the `PaymentSent` event was being
3640+
// processed.
36403641
let mut pending_outbound_payments = self.pending_outbound_payments.lock().unwrap();
36413642
let pending_events = self.pending_events.lock().unwrap();
36423643
pending_outbound_payments.retain(|payment_id, payment| {

0 commit comments

Comments
 (0)