Skip to content

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

fix(storage): forward database lookups through watching backend

Steven Enamakela2c8210ed699
diff --git a/crates/openhuman-core/src/modules/storage_host_bus_tests.rs b/crates/openhuman-core/src/modules/storage_host_bus_tests.rs
index 35f6823dbb..b6dc01f069 100644
--- a/crates/openhuman-core/src/modules/storage_host_bus_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_bus_tests.rs
@@ -1,6 +1,5 @@
use super::*;
use serde_json::json;
-use tinybus::ObjectPath;
use tinystoragedrivers_bus::STORAGE_INTERFACE;
use tinystoragedrivers_busproxy::{ERROR_DENIED, OBJECT_ROOT};
diff --git a/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs b/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
index d2d7c19a3d..bea7c54ccd 100644
--- a/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
+++ b/crates/openhuman-core/src/modules/storage_host_cdylib_tests.rs
@@ -30,7 +30,6 @@ use tinybus::module::ModuleHost;
use tinybus::transport::memory::MemoryBus;
use tinybus::{Connection, Proxy};
use tinystoragedrivers::secrets::{DerivedKeys, KeyProvider};
-use tinystoragedrivers::MemoryStorage;
use zeroize::Zeroizing;
use crate::modules::storage_grants::{declared, StorageGrant};
diff --git a/crates/openhuman-core/src/modules/storage_host_watching.rs b/crates/openhuman-core/src/modules/storage_host_watching.rs
index e89518528a..695c5bf3f7 100644
--- a/crates/openhuman-core/src/modules/storage_host_watching.rs
+++ b/crates/openhuman-core/src/modules/storage_host_watching.rs
@@ -41,6 +41,10 @@ impl StorageBackend for WatchingStorage {
self.inner.capabilities().with(Capability::Watch)
}
+ fn database(&self, name: &str) -> Result<Arc<dyn StorageBackend>> {
+ self.inner.database(name)
+ }
+
fn for_scope(&self, scope: &Scope) -> Result<ScopedStorage> {
let scoped = self.inner.for_scope(scope)?;
let sender = {