pub async fn sweep_logs(
log_dir: PathBuf,
journal: Journal,
retention: LogRetention,
metrics: AgentMetrics,
interval: Duration,
stop: impl Future<Output = ()>,
)Expand description
Sweeps now and every interval until stop completes, recording the bytes kept
and deleted in metrics.