mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-19 03:04:27 -05:00
chore(db-api): simplify DatabaseMetrics impl for Arc (#21635)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user