File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 14
14
//! to send a payment over a [`Route`]. Implementations of [`Router`] find a [`Route`] between payer
15
15
//! and payee using information provided by the payer and from the payee's [`Invoice`].
16
16
//!
17
- //! [`InvoicePayer`] caches each [`Invoice`] by its `payment_hash` so that it can retry the payment
18
- //! if it fails. It accomplishes this by implementing [`EventHandler`] which decorates a
19
- //! user-provided handler. It will intercept any [`Event::PaymentPathFailed`] events and retry the
20
- //! failed paths for a fixed number of total attempts or until retry is no longer possible. In such
21
- //! a situation, [`InvoicePayer`] will pass along the events to the user-provided handler.
17
+ //! [`InvoicePayer`] is capable of retrying failed payments. It accomplishes this by implementing
18
+ //! [`EventHandler`] which decorates a user-provided handler. It will intercept any
19
+ //! [`Event::PaymentPathFailed`] events and retry the failed paths for a fixed number of total
20
+ //! attempts or until retry is no longer possible. In such a situation, [`InvoicePayer`] will pass
21
+ //! along the events to the user-provided handler.
22
22
//!
23
23
//! # Example
24
24
//!
You can’t perform that action at this time.
0 commit comments