Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(storage): remove unused document storage helpers

Steven Enamakelf52770e70c2e
diff --git a/crates/openhuman-core/src/storage/documents.rs b/crates/openhuman-core/src/storage/documents.rs
index 3e8c610448..b337bd68c3 100644
--- a/crates/openhuman-core/src/storage/documents.rs
+++ b/crates/openhuman-core/src/storage/documents.rs
@@ -247,7 +247,7 @@ pub async fn compare_and_swap(
docs: &Arc<dyn DocumentStore>,
collection: &str,
id: &str,
- change: impl Fn(&Value) -> Option<Value> + Send,
+ change: impl Fn(&Value) -> Option<Value> + Send + Sync,
) -> Result<Option<Versioned<Value>>, StorageError> {
let repo = TsdRepo::<Value>::new(docs, collection)?.with_retry(RetryPolicy::default());
let written = repo