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(storage): adjust imports and test formatting
Steven Enamakel024d0d068fb9
diff --git a/crates/openhuman-core/src/storage/documents.rs b/crates/openhuman-core/src/storage/documents.rsindex a96d0fa28e..41d8d0a4fb 100644--- a/crates/openhuman-core/src/storage/documents.rs+++ b/crates/openhuman-core/src/storage/documents.rs@@ -12,12 +12,12 @@ use std::collections::HashMap;use std::future::Future;use std::sync::{Arc, LazyLock, Mutex, PoisonError, Weak};-use anyhow::{anyhow, Context, Result};+use anyhow::{Context, Result, anyhow};use serde_json::Value;use tinystoragedrivers::{CollectionSpec, ErrorKind, Precondition, Versioned};use super::{- block_on, current_scope, installed, DocumentStore, Scope, Storage, StorageBackend, StorageError,+ DocumentStore, Scope, Storage, StorageBackend, StorageError, block_on, current_scope, installed,};/// Collections already declared, per process: `(backend address, scope,diff --git a/crates/openhuman-core/src/storage/documents_tests.rs b/crates/openhuman-core/src/storage/documents_tests.rsindex c6ae455419..7d3857565c 100644--- a/crates/openhuman-core/src/storage/documents_tests.rs+++ b/crates/openhuman-core/src/storage/documents_tests.rs@@ -186,9 +186,10 @@ fn one_time_work_runs_once_per_backend_and_scope_and_retries_failures() {};let first = backend();let repo = repo_on(&first, "once");- assert!(repo- .once_per_backend("k", || Err(anyhow::anyhow!("boom")))- .is_err());+ assert!(+ repo.once_per_backend("k", || Err(anyhow::anyhow!("boom")))+ .is_err()+ );repo.once_per_backend("k", count).unwrap();repo.once_per_backend("k", count).unwrap();assert_eq!(runs.get(), 1, "a failure is retried, a success is recorded");