Skip to content

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

fix(registry): collapse chained method calls for readability

Steven Enamakel094adc951b57
diff --git a/src/openhuman/mcp/registry/custom/ops.rs b/src/openhuman/mcp/registry/custom/ops.rs
index d2443d1b6c..cc940fe241 100644
--- a/src/openhuman/mcp/registry/custom/ops.rs
+++ b/src/openhuman/mcp/registry/custom/ops.rs
@@ -196,9 +196,7 @@ pub async fn mcp_clients_update_custom(
credential_scope(&current.transport) != credential_scope(&transport);
let env = resolve_env_for_transport(
&input.env,
- &stored_env
- .into_iter()
- .collect::<HashMap<String, String>>(),
+ &stored_env.into_iter().collect::<HashMap<String, String>>(),
&current.transport,
&transport,
);
@@ -246,9 +244,7 @@ pub async fn mcp_clients_update_custom(
// pins the server to the pre-edit command indefinitely — it stays healthy, so
// no later tick reconnects it. `update_env` persists first for the same
// reason.
- reg.connections()
- .disconnect(&server_id)
- .await;
+ reg.connections().disconnect(&server_id).await;
tracing::debug!("[mcp-custom] update ok server_id={}", server_id);