chore: remove dead code

This commit is contained in:
Joonas Koivunen
2023-03-28 11:30:36 +03:00
committed by Joonas Koivunen
parent 6e8d7b449f
commit 03ab5df081

View File

@@ -544,19 +544,6 @@ async fn extend_lru_candidates(
scratch.clear();
}
return ControlFlow::Continue(());
// let prod_max_layer_file_size = 332_880_000;
// // rate-limit warning in case above comment is wrong and we're missing `LayerMetadata` for many layers
// static LAST_WARNED: Mutex<Option<Instant>> = Mutex::new(None);
// let mut last_warned = LAST_WARNED.lock().unwrap();
// if last_warned
// .map(|v| v.elapsed() > Duration::from_secs(60))
// .unwrap_or(true)
// {
// warn!(value=prod_max_layer_file_size, "some layers don't have LayerMetadata to calculate max_layer_file_size, using default value");
// *last_warned = Some(Instant::now());
// }
// prod_max_layer_file_size
}
}
}