From 94e2bb2ca2357a84e9241cc9ad8dbf6b5c27e1ba Mon Sep 17 00:00:00 2001 From: Rakan Al-Huneiti Date: Mon, 16 Dec 2024 16:48:23 +0300 Subject: [PATCH] Fix ci tests - metrics related (#1612) --- Makefile | 1 + crates/common/src/config.rs | 11 +---------- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 739c962b7..c925c1375 100644 --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ clean: ## Cleans compiled @cargo clean clean-node: ## Cleans local dbs needed for sequencer and nodes + rm -rf resources/dbs/da-db rm -rf resources/dbs/sequencer-db rm -rf resources/dbs/batch-prover-db rm -rf resources/dbs/light-client-prover-db diff --git a/crates/common/src/config.rs b/crates/common/src/config.rs index cf848f1bc..3985b02dd 100644 --- a/crates/common/src/config.rs +++ b/crates/common/src/config.rs @@ -410,7 +410,7 @@ impl FromEnv for SequencerMempoolConfig { } /// Telemetry configuration. -#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] +#[derive(Debug, Default, Clone, PartialEq, Deserialize, Serialize)] pub struct TelemetryConfig { /// Server host. pub bind_host: Option, @@ -418,15 +418,6 @@ pub struct TelemetryConfig { pub bind_port: Option, } -impl Default for TelemetryConfig { - fn default() -> Self { - Self { - bind_host: Some("0.0.0.0".to_owned()), - bind_port: Some(8081), - } - } -} - impl FromEnv for TelemetryConfig { fn from_env() -> anyhow::Result { let bind_host = std::env::var("TELEMETRY_BIND_HOST").ok();