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(modules): extract imported set type alias
Steven Enamakel06bbb6dea7c3
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rsindex 112f1144c3..b381a80200 100644--- a/crates/openhuman-core/src/modules/mod.rs+++ b/crates/openhuman-core/src/modules/mod.rs@@ -160,11 +160,11 @@ pub async fn import_legacy_mcp(data_dir: &std::path::Path) {/// The (importer, directory) pairs this process already imported, so a hot/// call path pays for the marker lookup once rather than on every call.#[cfg(feature = "modules")]-fn imported_once() -> &'static std::sync::Mutex<std::collections::HashSet<(&'static str, std::path::PathBuf)>>-{- static DONE: std::sync::OnceLock<- std::sync::Mutex<std::collections::HashSet<(&'static str, std::path::PathBuf)>>,- > = std::sync::OnceLock::new();+type ImportedSet = std::sync::Mutex<std::collections::HashSet<(&'static str, std::path::PathBuf)>>;++#[cfg(feature = "modules")]+fn imported_once() -> &'static ImportedSet {+ static DONE: std::sync::OnceLock<ImportedSet> = std::sync::OnceLock::new();DONE.get_or_init(Default::default)}