@@ -253,7 +253,7 @@ where
253
253
) -> Result < PaymentId , PaymentError > {
254
254
debug_assert ! ( invoice. amount_milli_satoshis( ) . is_some( ) ^ amount_msats. is_some( ) ) ;
255
255
let payment_hash = PaymentHash ( invoice. payment_hash ( ) . clone ( ) . into_inner ( ) ) ;
256
- let failed_paths_data = loop {
256
+ let retry_data_payment_id = loop {
257
257
let mut payment_cache = self . payment_cache . lock ( ) . unwrap ( ) ;
258
258
match payment_cache. entry ( payment_hash) {
259
259
hash_map:: Entry :: Vacant ( entry) => {
@@ -309,11 +309,11 @@ where
309
309
hash_map:: Entry :: Occupied ( _) => return Err ( PaymentError :: Invoice ( "payment pending" ) ) ,
310
310
}
311
311
} ;
312
- if let Some ( ( retry , payment_id) ) = failed_paths_data {
312
+ if let Some ( ( retry_data , payment_id) ) = retry_data_payment_id {
313
313
// Some paths were sent, even if we failed to send the full MPP value our recipient may
314
314
// misbehave and claim the funds, at which point we have to consider the payment sent,
315
315
// so return `Ok()` here, ignoring any retry errors.
316
- let _ = self . retry_payment ( payment_id, payment_hash, & retry ) ;
316
+ let _ = self . retry_payment ( payment_id, payment_hash, & retry_data ) ;
317
317
Ok ( payment_id)
318
318
} else {
319
319
self . pay_invoice_internal ( invoice, amount_msats, retry_count + 1 )
0 commit comments