Skip to content

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

feat(modules): expose storage host invocation module

Steven Enamakel37a9e9aec31e
diff --git a/crates/openhuman-core/src/modules/mod.rs b/crates/openhuman-core/src/modules/mod.rs
index bc53fcfbf8..61a23e25a7 100644
--- a/crates/openhuman-core/src/modules/mod.rs
+++ b/crates/openhuman-core/src/modules/mod.rs
@@ -100,6 +100,8 @@ pub mod storage_grants;
#[cfg(feature = "modules")]
pub(crate) mod storage_host;
#[cfg(feature = "modules")]
+pub(crate) mod storage_host_invocation;
+#[cfg(feature = "modules")]
mod storage_host_linked;
#[cfg(all(test, feature = "modules"))]
mod storage_host_watching;
diff --git a/crates/openhuman-core/src/modules/storage_host_invocation.rs b/crates/openhuman-core/src/modules/storage_host_invocation.rs
index eb2edddc98..ef9de6c7e1 100644
--- a/crates/openhuman-core/src/modules/storage_host_invocation.rs
+++ b/crates/openhuman-core/src/modules/storage_host_invocation.rs
@@ -62,7 +62,9 @@ impl InvocationStorageBinding {
.unique_name()
.ok_or_else(|| anyhow::anyhow!("module runtime connection has no unique bus name"))?;
let serial = NEXT_INVOCATION
- .fetch_update(Ordering::Relaxed, Ordering::Relaxed, |next| next.checked_add(1))
+ .fetch_update(Ordering::Relaxed, Ordering::Relaxed, |next| {
+ next.checked_add(1)
+ })
.map_err(|_| anyhow::anyhow!("invocation storage address space is exhausted"))?;
let object_root = ObjectPath::new(format!(
"{}/call-{serial}",