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: tidy whitespace in background delivery module and tests
Steven Enamakelb112dd68157c
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex 1c8b3d75b9..0a54ef03ae 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -45,7 +45,6 @@ use crate::core::events::DomainEvent;use tinybus::EventHandler;use tinybus::SubscriptionHandle;-use super::background_completions;use super::busy_guard::is_busy;use super::completion_notice::build_undelivered_notice;@@ -63,7 +62,6 @@ const DEBOUNCE: Duration = Duration::from_secs(3);/// delivery turn, so providers and the session store are up first.const RECOVERY_DELAY: Duration = Duration::from_secs(15);-/// Ask for a delivery attempt on `thread_id` soon (after a Stop cleared a stale/// busy mark, or anything else that may have left a drain without its trigger).pub(crate) fn kick_delivery(ctx: &DispatchCtx, thread_id: &str) {@@ -475,4 +473,3 @@ pub(crate) fn register_background_delivery() {#[cfg(test)]#[path = "background_delivery_tests.rs"]mod tests;-diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rsindex 634faa09f5..966d1a8caf 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery_tests.rs@@ -29,7 +29,14 @@ async fn try_deliver_applies_the_requested_turn_end_delay() {let workspace = TestWorkspace::new();let workspace_dir = workspace.path().to_path_buf();let thread_id = "thread-turn-end-delay";- record(&workspace_dir, "session-turn-end-delay", "sub-delay", "done", thread_id).await;+ record(+ &workspace_dir,+ "session-turn-end-delay",+ "sub-delay",+ "done",+ thread_id,+ )+ .await;let ctx = DispatchCtx::ambient();let requested_delay = Duration::from_millis(300);let started = std::time::Instant::now();diff --git a/crates/openhuman-core/src/agent/orchestration/delivery_drain_tests.rs b/crates/openhuman-core/src/agent/orchestration/delivery_drain_tests.rsindex b927f23825..b040b272d9 100644--- a/crates/openhuman-core/src/agent/orchestration/delivery_drain_tests.rs+++ b/crates/openhuman-core/src/agent/orchestration/delivery_drain_tests.rs@@ -150,4 +150,3 @@ async fn a_recovered_drain_waits_for_a_relayed_turn_on_its_thread() {assert!(ran);assert!(!is_busy(&DispatchCtx::ambient(), thread));}-