From 32e8d9ec16f5dc3c47b63ff14e1914c87b638cc3 Mon Sep 17 00:00:00 2001 From: Pi Lanningham Date: Mon, 6 Jan 2025 02:41:03 -0500 Subject: [PATCH] chore: clippy fixes --- crates/amaru/src/bin/amaru/metrics.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/amaru/src/bin/amaru/metrics.rs b/crates/amaru/src/bin/amaru/metrics.rs index bc0e15f..00548dc 100644 --- a/crates/amaru/src/bin/amaru/metrics.rs +++ b/crates/amaru/src/bin/amaru/metrics.rs @@ -25,7 +25,8 @@ pub fn track_system_metrics(metrics: SdkMeterProvider) -> JoinHandle<()> { Ok(sys) => sys, Err(err) => { warn!("failed to read system metrics: {}", err); - delay = delay * 2; + // Back off slightly so the logs aren't as noisy + delay *= 2; if delay > Duration::from_secs(30) { delay = Duration::from_secs(30); }