Explain cloud config fetch lock purpose

This commit is contained in:
Joe Florencio
2026-06-12 16:09:09 -07:00
parent 830360a61a
commit dc6ea06d88

View File

@@ -241,6 +241,9 @@ where
return Ok(loaded);
}
// This is a cross-process single-flight lock, not a cache-file
// integrity lock. One process fetches while contenders wait and
// recheck the shared cache for its result.
match self.cache.try_acquire_lock().await {
Ok(CacheLockAttempt::Acquired(_cache_lock)) => {
// Close the race between the cache read and lock acquisition.