Skip to content

Commit f5c951d

Browse files
committed
f engrish
1 parent 24e950d commit f5c951d

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
@@ -3617,8 +3617,9 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
36173617
// from the map. However, if we did that immediately when the last payment HTLC is claimed,
36183618
// this could race the user making a duplicate send_payment call and our idempotency
36193619
// guarantees would be violated. Instead, we wait a few timer ticks to do the actual
3620-
// removal. This should be more than sufficient to ensure any `send_payment` calls that
3621-
// were made at the same time the `PaymentSent` event was being processed complete.
3620+
// removal. This should be more than sufficient to ensure the idempotency of any
3621+
// `send_payment` calls that were made at the same time the `PaymentSent` event was being
3622+
// processed.
36223623
let mut pending_outbound_payments = self.pending_outbound_payments.lock().unwrap();
36233624
let pending_events = self.pending_events.lock().unwrap();
36243625
pending_outbound_payments.retain(|payment_id, payment| {

0 commit comments

Comments
 (0)