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
chore(timeout): reformat long function calls and assertions
Steven Enamakeld1d18e23ba01
diff --git a/crates/openhuman-core/src/tools/timeout/mod.rs b/crates/openhuman-core/src/tools/timeout/mod.rsindex 5ae8c62b18..c756382c8b 100644--- a/crates/openhuman-core/src/tools/timeout/mod.rs+++ b/crates/openhuman-core/src/tools/timeout/mod.rs@@ -54,7 +54,12 @@ fn build_settings(inherited_secs: u64) -> ToolTimeoutSettings {static SETTINGS: OnceLock<ToolTimeoutSettings> = OnceLock::new();fn settings() -> &'static ToolTimeoutSettings {- SETTINGS.get_or_init(|| build_settings(resolve_effective(DEFAULT_TIMEOUT_SECS, read_env().as_deref())))+ SETTINGS.get_or_init(|| {+ build_settings(resolve_effective(+ DEFAULT_TIMEOUT_SECS,+ read_env().as_deref(),+ ))+ })}/// Parse a raw env-var value into a bounded timeout.@@ -104,9 +109,7 @@ pub fn env_override_active() -> bool {/// Effective inherited timeout in whole seconds, seeding the global settings/// from env/default on first read.fn current_secs() -> u64 {- settings()- .inherited_timeout()- .map_or(0, |d| d.as_secs())+ settings().inherited_timeout().map_or(0, |d| d.as_secs())}/// Push a config-sourced timeout into the runtime. The operator env override,diff --git a/crates/openhuman-core/src/tools/timeout/mod_tests.rs b/crates/openhuman-core/src/tools/timeout/mod_tests.rsindex 34f602c9e6..256835b63a 100644--- a/crates/openhuman-core/src/tools/timeout/mod_tests.rs+++ b/crates/openhuman-core/src/tools/timeout/mod_tests.rs@@ -149,7 +149,10 @@ fn resolve_tool_deadline_table() {for (policy, inherited_secs, expected) in cases {// Resolve against the pure helper so the process-global stays untouched.let got = resolve_tool_deadline_with(policy, inherited_secs);- assert_eq!(got, expected, "policy {policy:?} inherited {inherited_secs}s");+ assert_eq!(+ got, expected,+ "policy {policy:?} inherited {inherited_secs}s"+ );}}@@ -174,6 +177,10 @@ fn resolve_effective_table() {(3600, None, 3600),];for &(config, env, expected) in cases {- assert_eq!(resolve_effective(config, env), expected, "config {config} env {env:?}");+ assert_eq!(+ resolve_effective(config, env),+ expected,+ "config {config} env {env:?}"+ );}}