Fix VRP metrics for repositories.
@@ -1151,14 +1151,16 @@ impl<'a, P: ProcessRun> PubPoint<'a, P> {
}
fn apply_metrics(
- &self,
+ &mut self,
metrics: &mut RunMetrics,
) {
+ let repository_index = self.repository_index.unwrap_or_else(|| {
+ metrics.repository_index(self.cert)
+ });
+ self.processor.repository_index(repository_index);
metrics.apply(
&self.metrics,
- self.repository_index.unwrap_or_else(|| {
- metrics.repository_index(self.cert)
- }),
+ repository_index,
self.cert.tal
);
}
@@ -1897,4 +1899,3 @@ pub trait ProcessPubPoint: Sized + Send + Sync {
}
}
-
