Skip to content

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

refactor(profiles): reflow cron admission call for readability

Steven Enamakeldaff0a6ce28f
diff --git a/crates/openhuman-core/src/profiles/host.rs b/crates/openhuman-core/src/profiles/host.rs
index 128cdae2db..17c42d5c94 100644
--- a/crates/openhuman-core/src/profiles/host.rs
+++ b/crates/openhuman-core/src/profiles/host.rs
@@ -404,12 +404,9 @@ impl ProfileHost {
let anchor: Arc<dyn std::any::Any + Send + Sync> = context.clone();
fence.anchor_to(Arc::downgrade(&anchor));
self.fences.register(Arc::clone(&fence));
- if let Err(error) = super::lifecycle::reconcile_cron_admission(
- &config,
- id,
- self.cron_backend.as_ref(),
- )
- .await
+ if let Err(error) =
+ super::lifecycle::reconcile_cron_admission(&config, id, self.cron_backend.as_ref())
+ .await
{
self.fences.retire(id.as_str(), grant.epoch);
profile_lease::release_all(self, vec![(id.clone(), grant)]).await;