File tree Expand file tree Collapse file tree 3 files changed +2
-3
lines changed
Expand file tree Collapse file tree 3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ version.workspace = true
44edition.workspace = true
55rust-version.workspace = true
66publish = false
7- build = " build.rs"
87
98[dependencies ]
109# ethereum
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -105,12 +105,13 @@ async fn main() -> Result<()> {
105105 // Remember to register all your metrics before starting the process
106106 MY_CUSTOM_REGISTRY . register ( Box :: new ( SIG_RECEIVED_COUNTER . clone ( ) ) ) ?;
107107 // Spin up a server that exposes the /metrics endpoint to Prometheus
108- MetricsProvider :: load_and_run ( Chain :: Mainnet , MY_CUSTOM_REGISTRY . clone ( ) ) ?;
109108
110109 match load_commit_module_config :: < ExtraConfig > ( ) {
111110 Ok ( config) => {
112111 let _guard = initialize_tracing_log ( & config. id ) ?;
113112
113+ MetricsProvider :: load_and_run ( config. chain , MY_CUSTOM_REGISTRY . clone ( ) ) ?;
114+
114115 info ! (
115116 module_id = %config. id,
116117 sleep_secs = config. extra. sleep_secs,
You can’t perform that action at this time.
0 commit comments