This commit is contained in:
Mateusz Gruszczyński committed 2026-10-13 23:34:10 +02:00
1 parent 00218a72df
commit 4a3e4bcf8f
10 files changed
+745 -331

No files matched your search

+6 -11
View File
@@ -146,10 +146,7 @@ async fn run(
}
let renewal_observations = store.load_certificate_renewals().await?;
let geoip_format = snapshot.envelope.config.geoip_updates.format;
let geoip = match rust_proxy::geoip::Database::load_format(
&data_dir.join("geoip"),
geoip_format,
) {
let geoip = match rust_proxy::geoip::Database::load_format(&data_dir.join("geoip"), geoip_format) {
Ok(database) => std::sync::Arc::new(database),
Err(error) => {
tracing::warn!(%error, "GeoIP country database unavailable; country allow lists fail closed");
@@ -436,10 +433,7 @@ async fn run(
grace
};
if managed_update {
tracing::info!(
budget_seconds = cache_flush_budget.as_secs(),
"managed-update hot-to-cold cache handoff started"
);
tracing::info!(budget_seconds = cache_flush_budget.as_secs(), "managed-update hot-to-cold cache handoff started");
}
let flush_result = if managed_update {
tokio::time::timeout(
@@ -451,9 +445,10 @@ async fn run(
tokio::time::timeout(cache_flush_budget, state.cache.flush_hot_to_cold()).await
};
match flush_result {
Ok(moved) if managed_update => {
tracing::info!(moved, "managed-update hot-to-cold cache handoff completed")
}
Ok(moved) if managed_update => tracing::info!(
moved,
"managed-update hot-to-cold cache handoff completed"
),
Ok(moved) if moved > 0 => tracing::info!(
moved,
"flushed hot cache objects to cold storage before shutdown"