Skip to content

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

fix(inbound): use try_update for fetching updates

Steven Enamakel39cac1d268bb
diff --git a/crates/openhuman-core/src/inbound/linked_fixture.rs b/crates/openhuman-core/src/inbound/linked_fixture.rs
index 96ed8f04fd..1c99d264bb 100644
--- a/crates/openhuman-core/src/inbound/linked_fixture.rs
+++ b/crates/openhuman-core/src/inbound/linked_fixture.rs
@@ -165,7 +165,7 @@ impl TriageRunner for ScriptedTriage {
}
let failing = self
.failing_applies
- .fetch_update(Ordering::SeqCst, Ordering::SeqCst, |n| n.checked_sub(1))
+ .try_update(Ordering::SeqCst, Ordering::SeqCst, |n| n.checked_sub(1))
.is_ok();
if failing {
return Err(anyhow::anyhow!("scripted apply failure"));