chadtmiller.com/knotless
git that lives in your Atmosphere account
1
10
A run's layers that fail to go at first are removed again
crates/knotless-run/src/caches.rs+4−1
| @@ -695,7 +695,10 @@ impl Lease { | ||
| ||
impl Drop for Lease { | ||
fn drop(&mut self) { | ||
let _ = remove(&self.dir); | ||
// Written to as it goes, it is not empty once its files are: a | ||
// first try that fails so is tried again, rather than left until | ||
// the runner next starts. | ||
let _ = (0..3).any(|_| remove(&self.dir).is_ok()); | ||
let mut bases = self.caches.bases.lock().unwrap(); | ||
for layer in &self.layers { | ||
let key = (layer.read.clone(), layer.generation); | ||