From c190af815fe428b66fd006329d08a622af3f092d Mon Sep 17 00:00:00 2001 From: Robbie McKinstry Date: Wed, 20 Nov 2024 16:23:54 -0500 Subject: [PATCH] Fix lints --- src/adapters/monitors/cloudwatch.rs | 2 +- src/adapters/monitors/mod.rs | 5 +---- src/pipeline/mod.rs | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/adapters/monitors/cloudwatch.rs b/src/adapters/monitors/cloudwatch.rs index 67a2717..a6e77c0 100644 --- a/src/adapters/monitors/cloudwatch.rs +++ b/src/adapters/monitors/cloudwatch.rs @@ -134,7 +134,7 @@ impl CloudWatch { } Err(err) => { println!("Error querying cloudwatch metrics: {:?}", err); - return 0; + 0 } } } diff --git a/src/adapters/monitors/mod.rs b/src/adapters/monitors/mod.rs index 04ac4d4..d85d6c7 100644 --- a/src/adapters/monitors/mod.rs +++ b/src/adapters/monitors/mod.rs @@ -1,7 +1,4 @@ -use crate::{ - pipeline::ResponseMonitor, - stats::{Group, Observation}, -}; +use crate::{pipeline::ResponseMonitor, stats::Observation}; use async_trait::async_trait; use miette::Result; use tokio::{pin, time::interval}; diff --git a/src/pipeline/mod.rs b/src/pipeline/mod.rs index 6010b7a..778f70b 100644 --- a/src/pipeline/mod.rs +++ b/src/pipeline/mod.rs @@ -1,5 +1,4 @@ use crate::adapters::{batch_observations, EngineController}; -use crate::stats::Group; use crate::{ adapters::{repeat_query, DecisionEngine, Ingress, Monitor}, metrics::ResponseStatusCode,