Make payment_path_failed path type bindings-mappable
[rust-lightning] / lightning / src / routing / scorer.rs
index 2aa0b4c145e67ef3c285ec2901d6a92631594ff5..956b09a54211e4dd90b9d6585c5c0aadb43edc47 100644 (file)
@@ -220,7 +220,7 @@ impl<T: Time> routing::Score for ScorerUsingTime<T> {
                self.params.base_penalty_msat + failure_penalty_msat
        }
 
-       fn payment_path_failed(&mut self, _path: &Vec<RouteHop>, short_channel_id: u64) {
+       fn payment_path_failed(&mut self, _path: &[&RouteHop], short_channel_id: u64) {
                let failure_penalty_msat = self.params.failure_penalty_msat;
                let half_life = self.params.failure_penalty_half_life;
                self.channel_failures