@@ -64,7 +64,7 @@ impl< G: Deref<Target = NetworkGraph<L>>, L: Deref, S: Deref, SP: Sized, Sc: Sco
64
64
payer : & PublicKey ,
65
65
params : & RouteParameters ,
66
66
first_hops : Option < & [ & ChannelDetails ] > ,
67
- inflight_htlcs : & InFlightHtlcs
67
+ inflight_htlcs : InFlightHtlcs
68
68
) -> Result < Route , LightningError > {
69
69
let random_seed_bytes = {
70
70
let mut locked_random_seed_bytes = self . random_seed_bytes . lock ( ) . unwrap ( ) ;
@@ -73,7 +73,7 @@ impl< G: Deref<Target = NetworkGraph<L>>, L: Deref, S: Deref, SP: Sized, Sc: Sco
73
73
} ;
74
74
find_route (
75
75
payer, params, & self . network_graph , first_hops, & * self . logger ,
76
- & ScorerAccountingForInFlightHtlcs :: new ( self . scorer . lock ( ) . deref_mut ( ) , inflight_htlcs) ,
76
+ & ScorerAccountingForInFlightHtlcs :: new ( self . scorer . lock ( ) . deref_mut ( ) , & inflight_htlcs) ,
77
77
& self . score_params ,
78
78
& random_seed_bytes
79
79
)
@@ -85,13 +85,13 @@ pub trait Router {
85
85
/// Finds a [`Route`] between `payer` and `payee` for a payment with the given values.
86
86
fn find_route (
87
87
& self , payer : & PublicKey , route_params : & RouteParameters ,
88
- first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : & InFlightHtlcs
88
+ first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : InFlightHtlcs
89
89
) -> Result < Route , LightningError > ;
90
90
/// Finds a [`Route`] between `payer` and `payee` for a payment with the given values. Includes
91
91
/// `PaymentHash` and `PaymentId` to be able to correlate the request with a specific payment.
92
92
fn find_route_with_id (
93
93
& self , payer : & PublicKey , route_params : & RouteParameters ,
94
- first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : & InFlightHtlcs ,
94
+ first_hops : Option < & [ & ChannelDetails ] > , inflight_htlcs : InFlightHtlcs ,
95
95
_payment_hash : PaymentHash , _payment_id : PaymentId
96
96
) -> Result < Route , LightningError > {
97
97
self . find_route ( payer, route_params, first_hops, inflight_htlcs)
@@ -112,7 +112,7 @@ pub struct ScorerAccountingForInFlightHtlcs<'a, S: Score<ScoreParams = SP>, SP:
112
112
113
113
impl < ' a , S : Score < ScoreParams = SP > , SP : Sized > ScorerAccountingForInFlightHtlcs < ' a , S , SP > {
114
114
/// Initialize a new `ScorerAccountingForInFlightHtlcs`.
115
- pub fn new ( scorer : & ' a mut S , inflight_htlcs : & ' a InFlightHtlcs ) -> Self {
115
+ pub fn new ( scorer : & ' a mut S , inflight_htlcs : & ' a InFlightHtlcs ) -> Self {
116
116
ScorerAccountingForInFlightHtlcs {
117
117
scorer,
118
118
inflight_htlcs
0 commit comments