From 59e24bd176de5ad4610c0a856336afb6ea92bf78 Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Thu, 27 Oct 2022 16:58:30 -0400 Subject: [PATCH] Fix inaccurate comment in InvoicePayer --- lightning-invoice/src/payment.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lightning-invoice/src/payment.rs b/lightning-invoice/src/payment.rs index 4b2a682b3..1b3177adf 100644 --- a/lightning-invoice/src/payment.rs +++ b/lightning-invoice/src/payment.rs @@ -606,9 +606,8 @@ where self.payment_cache.lock().unwrap().remove(payment_hash); } - /// Given a [`PaymentHash`], this function looks up inflight path attempts in the payment_cache. - /// Then, it uses the path information inside the cache to construct a HashMap mapping a channel's - /// short channel id and direction to the amount being sent through it. + /// Use path information in the payment_cache to construct a HashMap mapping a channel's short + /// channel id and direction to the amount being sent through it. /// /// This function should be called whenever we need information about currently used up liquidity /// across payments. -- 2.39.5