Skip to content

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

chore(storage): update tinystoragedrivers dependencies

Steven Enamakel39f83b6a04b9
diff --git a/crates/openhuman-app/Cargo.lock b/crates/openhuman-app/Cargo.lock
index a1aaefef0e..f7cabf7791 100644
--- a/crates/openhuman-app/Cargo.lock
+++ b/crates/openhuman-app/Cargo.lock
@@ -8157,7 +8157,9 @@ name = "tinystoragedrivers"
version = "0.4.0"
dependencies = [
"tinystoragedrivers-core",
+ "tinystoragedrivers-file",
"tinystoragedrivers-secrets",
+ "tinystoragedrivers-sqlite",
]
[[package]]
@@ -8171,6 +8173,18 @@ dependencies = [
"tokio",
]
+[[package]]
+name = "tinystoragedrivers-file"
+version = "0.4.0"
+dependencies = [
+ "async-trait",
+ "libc",
+ "serde",
+ "serde_json",
+ "tinystoragedrivers-core",
+ "tokio",
+]
+
[[package]]
name = "tinystoragedrivers-secrets"
version = "0.4.0"
diff --git a/crates/openhuman-core/src/storage/local.rs b/crates/openhuman-core/src/storage/local.rs
index 8abc3837f8..27f49991ac 100644
--- a/crates/openhuman-core/src/storage/local.rs
+++ b/crates/openhuman-core/src/storage/local.rs
@@ -47,7 +47,7 @@ use std::{
use anyhow::{anyhow, Context, Result};
use rusqlite::Connection;
use serde_json::Value;
-use tinystoragedrivers::{CollectionSpec, Precondition};
+use tinystoragedrivers::CollectionSpec;
use super::config::{mode, StorageMode};
use super::documents::Repo;
@@ -236,7 +236,7 @@ fn import(
let mut written = 0usize;
for row in rows {
match docs
- .put(row.collection, &row.id, row.doc, Precondition::Absent)
+ .put(row.collection, &row.id, row.doc, tinystoragedrivers::Precondition::Absent)
.await
{
Ok(_) => written += 1,