Skip to content

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

Revert "refactor(ops): reformat closure argument and fix indentation"\n\nThis reverts commit b4a15aa32e0badf2f69496d99de0040a2efc1bfa.\n

Steven Enamakel874e09d3e8ed
diff --git a/src/openhuman/agent/orchestration/ops.rs b/src/openhuman/agent/orchestration/ops.rs
index c557732f94..6a2a4f6a08 100644
--- a/src/openhuman/agent/orchestration/ops.rs
+++ b/src/openhuman/agent/orchestration/ops.rs
@@ -228,9 +228,12 @@ 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:?}");
@@ -455,10 +458,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;