mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(metrics): restructure crates (#2850)
This commit is contained in:
@ -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"
|
||||
|
||||
@ -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)]
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user