chore(db-api): simplify DatabaseMetrics impl for Arc (#21635)

This commit is contained in:
pepes
2026-01-30 19:43:19 +01:00
committed by GitHub
parent 435d915422
commit 781128eece

View File

@@ -37,18 +37,18 @@ pub trait DatabaseMetrics {
impl<DB: DatabaseMetrics> DatabaseMetrics for Arc<DB> {
fn report_metrics(&self) {
<DB as DatabaseMetrics>::report_metrics(self)
DB::report_metrics(self)
}
fn gauge_metrics(&self) -> Vec<(&'static str, f64, Vec<Label>)> {
<DB as DatabaseMetrics>::gauge_metrics(self)
DB::gauge_metrics(self)
}
fn counter_metrics(&self) -> Vec<(&'static str, u64, Vec<Label>)> {
<DB as DatabaseMetrics>::counter_metrics(self)
DB::counter_metrics(self)
}
fn histogram_metrics(&self) -> Vec<(&'static str, f64, Vec<Label>)> {
<DB as DatabaseMetrics>::histogram_metrics(self)
DB::histogram_metrics(self)
}
}