chore: global cleanup

This commit is contained in:
Mikaël Cluseau
2026-05-20 12:23:47 +02:00
parent 35a2609f29
commit 31bf15d37d
9 changed files with 104 additions and 99 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
use async_compression::tokio::write::{ZstdDecoder, ZstdEncoder};
use chrono::{DurationRound, TimeDelta, Utc};
use eyre::{format_err, Result};
use eyre::{Result, format_err};
use log::{debug, error, warn};
use std::ffi::OsStr;
use std::path::{Path, PathBuf};
@@ -10,7 +10,7 @@ use tokio::{
io::{self, AsyncBufReadExt, AsyncRead, AsyncWrite, AsyncWriteExt, BufReader, BufWriter},
process::{Child, Command},
sync::mpsc,
time::{sleep, Duration},
time::{Duration, sleep},
};
use crate::{cgroup, fs};
@@ -220,7 +220,7 @@ impl Logger {
fn forward_signals_to(pid: i32) {
use nix::{
sys::signal::{kill, Signal},
sys::signal::{Signal, kill},
unistd::Pid,
};
use signal_hook::{consts::*, low_level::register};