@@ -504,8 +504,8 @@ where
504
504
505
505
match send_payment ( & route) {
506
506
Ok ( payment_id) => {
507
- for hops in route. paths {
508
- self . process_path_inflight_htlcs ( payment_hash, & hops ) ;
507
+ for path in route. paths {
508
+ self . process_path_inflight_htlcs ( payment_hash, & path ) ;
509
509
}
510
510
Ok ( payment_id)
511
511
} ,
@@ -566,8 +566,8 @@ where
566
566
567
567
// Takes in a path to have its information stored in `payment_cache`. This is done for paths
568
568
// that are pending retry.
569
- fn process_path_inflight_htlcs ( & self , payment_hash : PaymentHash , hops : & Vec < RouteHop > ) {
570
- let payment_info_route_hops: Vec < PaymentInfoRouteHop > = hops . iter ( )
569
+ fn process_path_inflight_htlcs ( & self , payment_hash : PaymentHash , path : & Vec < RouteHop > ) {
570
+ let payment_info_route_hops: Vec < PaymentInfoRouteHop > = path . iter ( )
571
571
. map ( |h| PaymentInfoRouteHop { pubkey : h. pubkey , short_channel_id : h. short_channel_id , fee_msat : h. fee_msat } )
572
572
. collect ( ) ;
573
573
@@ -577,8 +577,8 @@ where
577
577
}
578
578
579
579
// Find the path we want to remove in `payment_cache`. If it doesn't exist, do nothing.
580
- fn remove_path_inflight_htlcs ( & self , payment_hash : PaymentHash , hops : & Vec < RouteHop > ) {
581
- let payment_info_route_hops: Vec < PaymentInfoRouteHop > = hops . iter ( )
580
+ fn remove_path_inflight_htlcs ( & self , payment_hash : PaymentHash , path : & Vec < RouteHop > ) {
581
+ let payment_info_route_hops: Vec < PaymentInfoRouteHop > = path . iter ( )
582
582
. map ( |h| PaymentInfoRouteHop { pubkey : h. pubkey , short_channel_id : h. short_channel_id , fee_msat : h. fee_msat } )
583
583
. collect ( ) ;
584
584
0 commit comments