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
refactor(relay): extract thread lock map type alias
Steven Enamakel8b4912c36a30
diff --git a/crates/openhuman-core/src/channels/providers/relay/store.rs b/crates/openhuman-core/src/channels/providers/relay/store.rsindex 82179c54d0..55433d3e7b 100644--- a/crates/openhuman-core/src/channels/providers/relay/store.rs+++ b/crates/openhuman-core/src/channels/providers/relay/store.rs@@ -39,8 +39,8 @@ pub fn reply_message_id(message_id: &str) -> String {/// One async lock per `(workspace, thread)`, so the duplicate check and the/// append in [`record_inbound`] are atomic against a concurrent gateway retry.fn thread_lock(workspace_dir: &Path, thread_id: &str) -> Arc<tokio::sync::Mutex<()>> {- static LOCKS: OnceLock<Mutex<HashMap<(PathBuf, String), Arc<tokio::sync::Mutex<()>>>>> =- OnceLock::new();+ type Locks = Mutex<HashMap<(PathBuf, String), Arc<tokio::sync::Mutex<()>>>>;+ static LOCKS: OnceLock<Locks> = OnceLock::new();let mut map = LOCKS.get_or_init(|| Mutex::new(HashMap::new())).lock()