From 13387dec4349273914e8a3d5d8de92921ca6864b Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 22 Jul 2023 17:58:03 -0500 Subject: [PATCH] Fix specs --- src/config/file.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/file.rs b/src/config/file.rs index 7118ce4..b4fe068 100644 --- a/src/config/file.rs +++ b/src/config/file.rs @@ -15,6 +15,7 @@ pub(crate) struct ConfigFile { pub(crate) tracing: Tracing, + #[serde(default)] pub(crate) metrics: Metrics, pub(crate) old_db: OldDb, @@ -121,7 +122,7 @@ pub(crate) struct Tracing { pub(crate) opentelemetry: OpenTelemetry, } -#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)] +#[derive(Clone, Debug, Default, serde::Deserialize, serde::Serialize)] #[serde(rename_all = "snake_case")] pub(crate) struct Metrics { #[serde(skip_serializing_if = "Option::is_none")]