Skip to content

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

style(channels): wrap long tracing and test lines

Steven Enamakeld35046be1b5d
diff --git a/crates/openhuman-core/src/channels/bus/subscriber.rs b/crates/openhuman-core/src/channels/bus/subscriber.rs
index 4071dac8d6..09ec02f8f4 100644
--- a/crates/openhuman-core/src/channels/bus/subscriber.rs
+++ b/crates/openhuman-core/src/channels/bus/subscriber.rs
@@ -266,7 +266,10 @@ impl EventHandler<DomainEvent> for ChannelInboundSubscriber {
}
}).await;
if wait.is_err() {
- tracing::error!("[channel-inbound] agent timed out after {}s", timeout.as_secs());
+ tracing::error!(
+ "[channel-inbound] agent timed out after {}s",
+ timeout.as_secs()
+ );
let _ = reply.finalize("Sorry, the request timed out.").await;
}
}
diff --git a/crates/openhuman-core/src/channels/bus/subscriber_tests.rs b/crates/openhuman-core/src/channels/bus/subscriber_tests.rs
index d323289bd1..5daee6acbc 100644
--- a/crates/openhuman-core/src/channels/bus/subscriber_tests.rs
+++ b/crates/openhuman-core/src/channels/bus/subscriber_tests.rs
@@ -24,7 +24,8 @@ async fn backend_channel_wait_does_not_cut_off_a_live_turn_after_180_seconds() {
tokio::time::sleep(Duration::from_secs(100)).await;
tx.send("progress").expect("event consumer remains active");
tokio::time::sleep(Duration::from_secs(101)).await;
- tx.send("terminal").expect("terminal consumer remains active");
+ tx.send("terminal")
+ .expect("terminal consumer remains active");
};
let (progress, ()) = tokio::join!(consumer, producer);
progress
@@ -34,5 +35,8 @@ async fn backend_channel_wait_does_not_cut_off_a_live_turn_after_180_seconds() {
let _progress_count = event_loop.await;
})
.await;
- assert!(result.is_ok(), "the live turn should reach its terminal event after 201 seconds");
+ assert!(
+ result.is_ok(),
+ "the live turn should reach its terminal event after 201 seconds"
+ );
}