The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(channels): register progressive channel adapters at startup
Steven Enamakeld2ddeefcb6c2
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rsindex 620d18cde3..748446293f 100644--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs@@ -136,9 +136,9 @@ impl ModuleChannelRuntime {.any(|identity| identity.platform == channel)})};- let channels = infos- .iter()- .map(|info| {+ let mut channels = HashMap::new();+ let mut progressive = HashMap::new();+ for info in &infos {let channel = ModuleChannel {name: info.name.clone(),object: lease.object().clone(),@@ -146,9 +146,16 @@ impl ModuleChannelRuntime {relay: relay.clone(),relay_fronted: relay_fronts(&info.name),};- (info.name.clone(), Arc::new(channel) as Arc<dyn Channel>)- })- .collect();+ let channel = Arc::new(channel);+ channels.insert(info.name.clone(), channel.clone() as Arc<dyn Channel>);+ progressive.insert(+ info.name.clone(),+ channel as Arc<dyn ProgressiveChannelTransport>,+ );+ }+ progressive_channels+ .set(Arc::new(progressive))+ .map_err(|_| anyhow::anyhow!("progressive channel adapters were already initialized"))?;Ok(Self {client,lease,