fix: task executor metrics (#11738)

This commit is contained in:
greged93
2024-10-16 12:39:25 +02:00
committed by GitHub
parent d421931b7e
commit 248b6b5905
3 changed files with 6 additions and 6 deletions

View File

@ -16,7 +16,6 @@ use reth_node_core::{
node_config::NodeConfig,
version,
};
use reth_node_metrics::recorder::install_prometheus_recorder;
use std::{ffi::OsString, fmt, future::Future, net::SocketAddr, path::PathBuf, sync::Arc};
/// Start the node
@ -180,10 +179,6 @@ impl<
pruning,
};
// Register the prometheus recorder before creating the database,
// because database init needs it to register metrics.
let _ = install_prometheus_recorder();
let data_dir = node_config.datadir();
let db_path = data_dir.db();