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
style: apply rustfmt formatting to channel controller code
Steven Enamakela8a9009922d6
diff --git a/crates/openhuman-core/src/channels/controllers/backend.rs b/crates/openhuman-core/src/channels/controllers/backend.rsindex 0ac82534f5..74b5b0683a 100644--- a/crates/openhuman-core/src/channels/controllers/backend.rs+++ b/crates/openhuman-core/src/channels/controllers/backend.rs@@ -41,7 +41,9 @@ impl OpenHumanChannelBackend {&self.config.channels_config,&prepared.intent.channel_id,) {- if let Some(result) = tinychannels::relay::send_outbound_intent(&prepared.intent).await? {+ if let Some(result) =+ tinychannels::relay::send_outbound_intent(&prepared.intent).await?+ {return Ok(result);}}diff --git a/crates/openhuman-core/src/channels/controllers/schemas.rs b/crates/openhuman-core/src/channels/controllers/schemas.rsindex 1ea6a22bf4..01f1b40915 100644--- a/crates/openhuman-core/src/channels/controllers/schemas.rs+++ b/crates/openhuman-core/src/channels/controllers/schemas.rs@@ -354,9 +354,10 @@ fn handle_discord_check_permissions(params: Map<String, Value>) -> ControllerFutBox::pin(async move {let config = config_rpc::load_config_with_timeout().await?;let p = deserialize_params::<DiscordCheckPermissionsParams>(params)?;- to_json(super::ops::discord_check_permissions(- &config, p.guild_id.trim(), p.channel_id.trim(),- ).await?)+ to_json(+ super::ops::discord_check_permissions(&config, p.guild_id.trim(), p.channel_id.trim())+ .await?,+ )})}@@ -380,7 +381,10 @@ async fn send_with_config(config: &Config, p: SendMessageParams) -> Result<Value.send_prepared(prepared).await.map_err(|error| error.to_string())?;- to_json(Outcome::new(raw_or_typed(result.raw.clone(), &result)?, vec![]))+ to_json(Outcome::new(+ raw_or_typed(result.raw.clone(), &result)?,+ vec![],+ ))}fn handle_send_reaction(params: Map<String, Value>) -> ControllerFuture {diff --git a/crates/openhuman-core/src/modules/channel_controller.rs b/crates/openhuman-core/src/modules/channel_controller.rsindex f49a0dcf4f..37cc0c724e 100644--- a/crates/openhuman-core/src/modules/channel_controller.rs+++ b/crates/openhuman-core/src/modules/channel_controller.rs@@ -69,7 +69,10 @@ pub(crate) async fn prepare_message(.call_confidential("tinychannels",methods::PREPARE_OUTBOUND_INTENT,- (channel, tinychannels_bus::ChannelMessagePreparation::Legacy(message)),+ (+ channel,+ tinychannels_bus::ChannelMessagePreparation::Legacy(message),+ ),).await}