fix(#2290): drop redundant async blocks around sync_tmpfiles spawn

This commit is contained in:
atlas 2026-07-09 00:02:57 +02:00 committed by mara
commit ae3ecc1de2
3 changed files with 3 additions and 5 deletions

View file

@ -969,7 +969,7 @@ pub async fn destroy(coord: &Arc<Coordinator>, name: &str, purge: bool) -> Resul
coord.emit_schedules_snapshot();
// Update tmpfiles.d to remove the destroyed agent's dirs from the
// boot-time pre-creation list. Best-effort: failure is logged only.
tokio::spawn(async { lifecycle::sync_tmpfiles().await });
tokio::spawn(lifecycle::sync_tmpfiles());
Ok(())
}