fix: cargo fmt, remove old use from lamp example
All checks were successful
Run Check Script / check (push) Successful in 1m49s
Run Check Script / check (pull_request) Successful in 1m48s

This commit is contained in:
Willem 2025-06-11 15:44:38 -04:00
parent 8d219c648a
commit 7c92a08132
2 changed files with 3 additions and 10 deletions

View File

@ -2,10 +2,7 @@ use harmony::{
data::Version, data::Version,
inventory::Inventory, inventory::Inventory,
maestro::Maestro, maestro::Maestro,
modules::{ modules::lamp::{LAMPConfig, LAMPScore},
lamp::{LAMPConfig, LAMPScore},
monitoring::monitoring_alerting::MonitoringAlertingStackScore,
},
topology::{K8sAnywhereTopology, Url}, topology::{K8sAnywhereTopology, Url},
}; };
@ -43,10 +40,7 @@ async fn main() {
.await .await
.unwrap(); .unwrap();
let mut monitoring_stack_score = MonitoringAlertingStackScore::new(); maestro.register_all(vec![Box::new(lamp_stack)]);
monitoring_stack_score.namespace = Some(lamp_stack.config.namespace.clone());
maestro.register_all(vec![Box::new(lamp_stack), Box::new(monitoring_stack_score)]);
// Here we bootstrap the CLI, this gives some nice features if you need them // Here we bootstrap the CLI, this gives some nice features if you need them
harmony_cli::init(maestro, None).await.unwrap(); harmony_cli::init(maestro, None).await.unwrap();
} }

View File

@ -1,6 +1,5 @@
use harmony::{ use harmony::{
inventory::Inventory, inventory::Inventory, maestro::Maestro,
maestro::Maestro,
modules::monitoring::monitoring_alerting::MonitoringAlertingScore, modules::monitoring::monitoring_alerting::MonitoringAlertingScore,
topology::K8sAnywhereTopology, topology::K8sAnywhereTopology,
}; };