From 7ec89cdac5869c424f8c7a35bc0ddd576b4ec695 Mon Sep 17 00:00:00 2001 From: Willem Date: Thu, 26 Jun 2025 11:26:07 -0400 Subject: [PATCH] fix: cargo fmt --- .../monitoring/alert_channel/webhook_receiver.rs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/harmony/src/modules/monitoring/alert_channel/webhook_receiver.rs b/harmony/src/modules/monitoring/alert_channel/webhook_receiver.rs index d1254c6..8f608d0 100644 --- a/harmony/src/modules/monitoring/alert_channel/webhook_receiver.rs +++ b/harmony/src/modules/monitoring/alert_channel/webhook_receiver.rs @@ -2,8 +2,14 @@ use async_trait::async_trait; use serde::Serialize; use serde_yaml::{Mapping, Value}; -use crate::{interpret::{InterpretError, Outcome}, modules::monitoring::kube_prometheus::{prometheus::{Prometheus, PrometheusReceiver}, types::{AlertChannelConfig, AlertManagerChannelConfig}}, topology::{oberservability::monitoring::AlertReceiver, Url}}; - +use crate::{ + interpret::{InterpretError, Outcome}, + modules::monitoring::kube_prometheus::{ + prometheus::{Prometheus, PrometheusReceiver}, + types::{AlertChannelConfig, AlertManagerChannelConfig}, + }, + topology::{Url, oberservability::monitoring::AlertReceiver}, +}; #[derive(Debug, Clone, Serialize)] pub struct WebhookReceiver { @@ -12,7 +18,7 @@ pub struct WebhookReceiver { } #[async_trait] -impl AlertReceiver for WebhookReceiver{ +impl AlertReceiver for WebhookReceiver { async fn install(&self, sender: &Prometheus) -> Result { sender.install_receiver(self).await } @@ -31,7 +37,6 @@ impl PrometheusReceiver for WebhookReceiver { } } - #[async_trait] impl AlertChannelConfig for WebhookReceiver { async fn get_config(&self) -> AlertManagerChannelConfig {