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): update fence usage to write_condition
Steven Enamakel8312869aa69e
diff --git a/crates/openhuman-core/src/storage/fence.rs b/crates/openhuman-core/src/storage/fence.rsindex a3b00ce936..6a50ef819a 100644--- a/crates/openhuman-core/src/storage/fence.rs+++ b/crates/openhuman-core/src/storage/fence.rs@@ -57,7 +57,7 @@ use std::any::Any;use std::sync::atomic::{AtomicU64, Ordering};use std::sync::{Arc, LazyLock, Mutex, PoisonError, Weak};-use tinystoragedrivers::Fence;+use tinystoragedrivers_types::WriteCondition;use super::lease::LeaseStore;use super::StorageError;@@ -193,15 +193,15 @@ impl LeaseFence {&self.node}- /// The fence a storage driver enforces for this grant: the lease record- /// (where the lease store keeps it, [`LeaseStore::driver_fence`]) must+ /// The condition a storage driver enforces for this grant: the lease record+ /// (where the lease store keeps it, [`LeaseStore::write_condition`]) must/// still name this node at this epoch, unreleased. `None` when the lease/// store keeps no record in the storage ports (file leases) or is gone;/// then only [`Self::check`] guards the write.- pub fn driver_fence(&self) -> Option<Fence> {+ pub fn write_condition(&self) -> Option<WriteCondition> {self.leases.upgrade()?- .driver_fence(&self.key, &self.node, self.epoch)+ .write_condition(&self.key, &self.node, self.epoch)}/// The refusal for a write the storage driver fenced off