mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-19 05:43:55 +01:00
Merge pull request #2340 from TheBlueMatt/2023-06-fix-docs
Remove spurious docs which imply you cannot retry a failed payment
This commit is contained in:
commit
9cafede23c
@ -28,8 +28,8 @@ use core::time::Duration;
|
||||
/// Pays the given [`Invoice`], retrying if needed based on [`Retry`].
|
||||
///
|
||||
/// [`Invoice::payment_hash`] is used as the [`PaymentId`], which ensures idempotency as long
|
||||
/// as the payment is still pending. Once the payment completes or fails, you must ensure that
|
||||
/// a second payment with the same [`PaymentHash`] is never sent.
|
||||
/// as the payment is still pending. If the payment succeeds, you must ensure that a second payment
|
||||
/// with the same [`PaymentHash`] is never sent.
|
||||
///
|
||||
/// If you wish to use a different payment idempotency token, see [`pay_invoice_with_id`].
|
||||
pub fn pay_invoice<M: Deref, T: Deref, ES: Deref, NS: Deref, SP: Deref, F: Deref, R: Deref, L: Deref>(
|
||||
@ -82,8 +82,8 @@ where
|
||||
/// [`Retry`].
|
||||
///
|
||||
/// [`Invoice::payment_hash`] is used as the [`PaymentId`], which ensures idempotency as long
|
||||
/// as the payment is still pending. Once the payment completes or fails, you must ensure that
|
||||
/// a second payment with the same [`PaymentHash`] is never sent.
|
||||
/// as the payment is still pending. If the payment succeeds, you must ensure that a second payment
|
||||
/// with the same [`PaymentHash`] is never sent.
|
||||
///
|
||||
/// If you wish to use a different payment idempotency token, see
|
||||
/// [`pay_zero_value_invoice_with_id`].
|
||||
@ -108,7 +108,7 @@ where
|
||||
}
|
||||
|
||||
/// Pays the given zero-value [`Invoice`] using the given amount and custom idempotency key,
|
||||
/// , retrying if needed based on [`Retry`].
|
||||
/// retrying if needed based on [`Retry`].
|
||||
///
|
||||
/// Note that idempotency is only guaranteed as long as the payment is still pending. Once the
|
||||
/// payment completes or fails, no idempotency guarantees are made.
|
||||
|
Loading…
Reference in New Issue
Block a user