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(memory): reorder imports and collapse closure formatting
Steven Enamakelcbabb084119f
diff --git a/crates/openhuman-core/src/memory/backfill.rs b/crates/openhuman-core/src/memory/backfill.rsindex 3fe607d7b6..cf588adb49 100644--- a/crates/openhuman-core/src/memory/backfill.rs+++ b/crates/openhuman-core/src/memory/backfill.rs@@ -38,10 +38,8 @@ use crate::memory::scope::{MemoryIdentity, ResolvedIdentity};use crate::memory::types::ImportPhase;use crate::threads::store::blocking as threads;-pub use tinymemory_tools::backfill::{- pending_range, turns_of, PastTurn, BACKFILL_TAG, MAIN_AGENT,-};use tinymemory_tools::backfill::{first_live_turn, group_items, turn_groups, ThreadMessage};+pub use tinymemory_tools::backfill::{pending_range, turns_of, PastTurn, BACKFILL_TAG, MAIN_AGENT};/// Backfills running now, per workspace.static RUNNING: LazyLock<Mutex<HashSet<PathBuf>>> = LazyLock::new(|| Mutex::new(HashSet::new()));diff --git a/crates/openhuman-core/src/memory/sources/sync.rs b/crates/openhuman-core/src/memory/sources/sync.rsindex 5c859c06c9..e6e77ca7f4 100644--- a/crates/openhuman-core/src/memory/sources/sync.rs+++ b/crates/openhuman-core/src/memory/sources/sync.rs@@ -12,8 +12,8 @@ use std::sync::{Arc, LazyLock, Mutex, PoisonError};use chrono::{DateTime, Utc};use tinymemory_integrations::sources::sync::{- self as module, RegisteredSource, SourceRegistry, SyncError, SyncState, SyncStatus, Syncer,- SyncUpdate,+ self as module, RegisteredSource, SourceRegistry, SyncError, SyncState, SyncStatus, SyncUpdate,+ Syncer,};use tinymemory_integrations::sources::SourceKind;@@ -115,16 +115,14 @@ static SYNCERS: LazyLock<Mutex<HashMap<PathBuf, Slot>>> =fn syncer_for(config: &Config) -> Syncer {let mut all = SYNCERS.lock().unwrap_or_else(PoisonError::into_inner);- let (syncer, slot) = all- .entry(config.workspace_dir.clone())- .or_insert_with(|| {- let slot = Arc::new(Mutex::new(config.clone()));- let registry = HostRegistry {- workspace: config.workspace_dir.clone(),- config: Arc::clone(&slot),- };- (Syncer::new(Arc::new(registry)), slot)- });+ let (syncer, slot) = all.entry(config.workspace_dir.clone()).or_insert_with(|| {+ let slot = Arc::new(Mutex::new(config.clone()));+ let registry = HostRegistry {+ workspace: config.workspace_dir.clone(),+ config: Arc::clone(&slot),+ };+ (Syncer::new(Arc::new(registry)), slot)+ });*slot.lock().unwrap_or_else(PoisonError::into_inner) = config.clone();syncer.clone()}