Skip to content

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

fix(channels): use relay_configured flag and qualified helper path

Steven Enamakelb3c1438330d2
diff --git a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs
index b04d9d6539..4e61f3d076 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs
@@ -236,8 +236,9 @@ async fn start_channels_inner(mut config: Config, session: CancellationToken) ->
));
tracing::debug!("[channels] registered turn-state and approval-surface subscribers");
- let listener_count = channels.len() + relay_config.as_ref().map(|_| 1).unwrap_or_default();
- let max_in_flight_messages = compute_max_in_flight_messages(listener_count);
+ let listener_count = channels.len() + usize::from(relay_configured);
+ let max_in_flight_messages =
+ tinychannels::runtime::compute_max_in_flight_messages(listener_count);
println!(" 🚦 In-flight message limit: {max_in_flight_messages}");