Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(ops): reformat closure argument and fix indentation\n\nReformat the closure argument in `cancel_all_retaining` to a single line and correct the indentation of the `ChildState` struct literal in `publish_terminal` call, improving code readability without changing any behavior.\n\nAuto-committed-on: macbook\n

Steven Enamakelb4a15aa32e0b
diff --git a/src/openhuman/agent/orchestration/ops.rs b/src/openhuman/agent/orchestration/ops.rs
index 6a2a4f6a08..c557732f94 100644
--- a/src/openhuman/agent/orchestration/ops.rs
+++ b/src/openhuman/agent/orchestration/ops.rs
@@ -228,12 +228,9 @@ impl AgentOrchestrationSession {
/// later soft-cap sweep prunes it), so a concurrent `wait_agents` resolves
/// with cancellation even when it starts after this method returns.
pub async fn abort_all(&self) {
- let cancelled = match self
- .registry
- .cancel_all_retaining(|metadata, _status| {
- mark_cancelled(&metadata.status_tx);
- })
- {
+ let cancelled = match self.registry.cancel_all_retaining(|metadata, _status| {
+ mark_cancelled(&metadata.status_tx);
+ }) {
Ok(cancelled) => cancelled,
Err(err) => {
log::warn!("[agent_orchestration] abort_all could not drain registry: {err:?}");
@@ -458,10 +455,10 @@ impl AgentOrchestrationSession {
if !publish_terminal(
status_tx,
ChildState {
- status: OrchestrationTaskStatus::Completed,
- result_summary: Some(outcome.output.clone()),
- error: None,
- updated_at: now(),
+ status: OrchestrationTaskStatus::Completed,
+ result_summary: Some(outcome.output.clone()),
+ error: None,
+ updated_at: now(),
},
) {
return;