Skip to content

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

fix(platform): reformat staging lock acquisition for readability

Steven Enamakelebe1640b2779
diff --git a/crates/openhuman-core/src/platform/update/core.rs b/crates/openhuman-core/src/platform/update/core.rs
index 705363a2a1..293028d105 100644
--- a/crates/openhuman-core/src/platform/update/core.rs
+++ b/crates/openhuman-core/src/platform/update/core.rs
@@ -11,7 +11,9 @@ fn staging_lock(dest: &std::path::Path) -> Arc<tokio::sync::Mutex<()>> {
static LOCKS: OnceLock<Mutex<std::collections::HashMap<PathBuf, Arc<tokio::sync::Mutex<()>>>>> =
OnceLock::new();
let locks = LOCKS.get_or_init(Default::default);
- let mut locks = locks.lock().unwrap_or_else(std::sync::PoisonError::into_inner);
+ let mut locks = locks
+ .lock()
+ .unwrap_or_else(std::sync::PoisonError::into_inner);
Arc::clone(
locks
.entry(dest.to_path_buf())