fix(cache): prevent race condition in atomic file rename

Swadhin Biswas committed 7 months ago
78424cf
1 parent a7a36bc
commit 78424cf
1 file changed
+1 -0
Showing 1 changed file+1-0
▼src/image_cache.rs
+1-0
311
311
assert!(result || !result); // Just verify it returns a bool
312
312
}
313
313
}
314
+// fix: race condition
314
315