chore(metrics): restructure crates (#2850)

This commit is contained in:
Roman Krasiuk
2023-05-26 15:21:48 +03:00
committed by GitHub
parent 966b31c191
commit 10b577096b
34 changed files with 110 additions and 119 deletions

View File

@ -16,14 +16,11 @@ reth-rlp = { path = "../../rlp" }
reth-provider = { path = "../../storage/provider" }
reth-payload-builder = { path = "../builder" }
reth-tasks = { path = "../../tasks" }
reth-metrics = { path = "../../metrics" }
## ethereum
revm = { version = "3" }
# metrics
metrics = "0.20.1"
reth-metrics-derive = { path = "../../metrics/metrics-derive" }
## async
tokio = { version = "1", features = ["sync", "time"] }
futures-core = "0.3"

View File

@ -1,7 +1,9 @@
//! Metrics for the payload builder impl
use metrics::Counter;
use reth_metrics_derive::Metrics;
use reth_metrics::{
metrics::{self, Counter},
Metrics,
};
/// Transaction pool metrics
#[derive(Metrics)]

View File

@ -14,14 +14,11 @@ reth-rpc-types = { path = "../../rpc/rpc-types" }
reth-rlp = { path = "../../rlp" }
reth-interfaces = { path = "../../interfaces" }
reth-revm-primitives = { path = "../../revm/revm-primitives" }
reth-metrics = { path = "../../metrics" }
## ethereum
revm-primitives = "1.1"
# metrics
metrics = "0.20.1"
reth-metrics-derive = { path = "../../metrics/metrics-derive" }
## async
tokio = { version = "1", features = ["sync"] }
tokio-stream = "0.1"

View File

@ -1,7 +1,9 @@
//! Payload builder service metrics.
use metrics::{Counter, Gauge};
use reth_metrics_derive::Metrics;
use reth_metrics::{
metrics::{self, Counter, Gauge},
Metrics,
};
/// Payload builder service metrics
#[derive(Metrics)]