fmt: applied formatting

This commit is contained in:
Dark-Alex-17 committed 2026-09-11 10:56:28 -06:00
1 parent 24b5504e21
commit 99fb6e24f1
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -22,6 +22,7 @@ use std::path::PathBuf;
use std::sync::Arc; use std::sync::Arc;
use std::time::{Duration, Instant}; use std::time::{Duration, Instant};
use tokio::sync::Semaphore; use tokio::sync::Semaphore;
use tokio::task::{AbortHandle, JoinHandle};
/// Test-only hook invoked inside a frontier branch task right after its /// Test-only hook invoked inside a frontier branch task right after its
/// teammate identity is retired, with the super-step's registry and the /// teammate identity is retired, with the super-step's registry and the
@@ -473,12 +474,10 @@ fn provision_frontier_peers(
(Some(registry), assignments) (Some(registry), assignments)
} }
/// Aborts every owned task when dropped. Aborting a task that has already pub(super) struct TaskCancelGuard(Vec<AbortHandle>);
/// finished is a no-op, so the success path is unaffected.
pub(super) struct TaskCancelGuard(Vec<tokio::task::AbortHandle>);
impl TaskCancelGuard { impl TaskCancelGuard {
pub(super) fn new<T>(tasks: &[tokio::task::JoinHandle<T>]) -> Self { pub(super) fn new<T>(tasks: &[JoinHandle<T>]) -> Self {
Self(tasks.iter().map(|task| task.abort_handle()).collect()) Self(tasks.iter().map(|task| task.abort_handle()).collect())
} }
+1 -1
View File
@@ -482,7 +482,7 @@ impl GraphValidator {
node_id, node_id,
format!( format!(
"Agent '{}' has both config.yaml and graph.yaml; a graph agent is \ "Agent '{}' has both config.yaml and graph.yaml; a graph agent is \
defined by graph.yaml alone — remove one of the two files", defined by graph.yaml alone. Remove one of the two files",
a.agent a.agent
), ),
)); ));