From 7c92a081325dfff5457186f79d469139ec10e31d Mon Sep 17 00:00:00 2001 From: Willem Date: Wed, 11 Jun 2025 15:44:38 -0400 Subject: [PATCH] fix: cargo fmt, remove old use from lamp example --- examples/lamp/src/main.rs | 10 ++-------- examples/monitoring/src/main.rs | 3 +-- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/examples/lamp/src/main.rs b/examples/lamp/src/main.rs index 4433d96..eaeb0f5 100644 --- a/examples/lamp/src/main.rs +++ b/examples/lamp/src/main.rs @@ -2,10 +2,7 @@ use harmony::{ data::Version, inventory::Inventory, maestro::Maestro, - modules::{ - lamp::{LAMPConfig, LAMPScore}, - monitoring::monitoring_alerting::MonitoringAlertingStackScore, - }, + modules::lamp::{LAMPConfig, LAMPScore}, topology::{K8sAnywhereTopology, Url}, }; @@ -43,10 +40,7 @@ async fn main() { .await .unwrap(); - let mut monitoring_stack_score = MonitoringAlertingStackScore::new(); - monitoring_stack_score.namespace = Some(lamp_stack.config.namespace.clone()); - - maestro.register_all(vec![Box::new(lamp_stack), Box::new(monitoring_stack_score)]); + maestro.register_all(vec![Box::new(lamp_stack)]); // Here we bootstrap the CLI, this gives some nice features if you need them harmony_cli::init(maestro, None).await.unwrap(); } diff --git a/examples/monitoring/src/main.rs b/examples/monitoring/src/main.rs index 8b6eeb4..91ddfd3 100644 --- a/examples/monitoring/src/main.rs +++ b/examples/monitoring/src/main.rs @@ -1,6 +1,5 @@ use harmony::{ - inventory::Inventory, - maestro::Maestro, + inventory::Inventory, maestro::Maestro, modules::monitoring::monitoring_alerting::MonitoringAlertingScore, topology::K8sAnywhereTopology, };