From 5e1b585a2d993fe4011d9c37499bd9df2afa0e65 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 1 Dec 2024 22:46:22 +0100 Subject: [PATCH] feat: add default no labels Signed-off-by: kjuulh --- crates/churn/src/agent/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/churn/src/agent/config.rs b/crates/churn/src/agent/config.rs index 083abac..88c0966 100644 --- a/crates/churn/src/agent/config.rs +++ b/crates/churn/src/agent/config.rs @@ -26,7 +26,7 @@ struct ConfigFile { agent_id: String, discovery: String, - labels: BTreeMap, + labels: Option>, } impl ConfigFile { @@ -55,7 +55,7 @@ impl ConfigFile { let s = Self { agent_id: Uuid::new_v4().to_string(), discovery: discovery.into(), - labels: labels.into(), + labels: Some(labels.into()), }; let directory = dirs::data_dir()