mirror of
https://github.com/openai/codex.git
synced 2026-09-03 14:59:03 +00:00
Explain cloud config fetch lock purpose
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user