Skip to content

Commit

Permalink
chore: clippy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Quantumplation committed Jan 6, 2025
1 parent 2e56f9f commit c66cfbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/amaru/src/bin/amaru/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 *= delay;
if delay > Duration::from_secs(30) {
delay = Duration::from_secs(30);
}
Expand Down

0 comments on commit c66cfbd

Please sign in to comment.