style: apply rustfmt to host shutdown changes

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
zyycn
2026-07-26 23:43:27 +08:00
co-authored by Claude
parent 55e87c3b16
commit ad6c21392f
2 changed files with 7 additions and 2 deletions
@@ -116,7 +116,10 @@ impl WorkerSupervisor {
let handles = std::mem::take(&mut *lock_unpoisoned(&self.handles));
let deadline = tokio::time::Instant::now() + timeout;
for (_, mut handle) in handles {
if tokio::time::timeout_at(deadline, &mut handle).await.is_err() {
if tokio::time::timeout_at(deadline, &mut handle)
.await
.is_err()
{
handle.abort();
let _ = handle.await;
}
@@ -660,7 +660,9 @@ async fn shutdown_timeout_must_not_rejoin_workers_that_already_exited() {
});
let leases = Arc::new(FakeLeasePort::default());
let supervisor = supervisor();
supervisor.start(plan, leases.clone()).expect("complete plan");
supervisor
.start(plan, leases.clone())
.expect("complete plan");
hung.notification.notified().await;
wait_until(|| cooperative.entered.load(Ordering::SeqCst) == ACTIVE_KINDS.len() - 1).await;