mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-17 13:10:38 +00:00
chore: remove dead code
This commit is contained in:
committed by
Joonas Koivunen
parent
6e8d7b449f
commit
03ab5df081
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user