clippy
CI / check (push) Successful in 1m13s
CI / docker (push) Successful in 2m54s

This commit is contained in:
Connor Johnstone
2026-03-22 14:42:43 -04:00
parent 24f5c4e02f
commit c7110fbbe7
+7 -6
View File
@@ -591,15 +591,16 @@ pub async fn download_dump(
// Skip if we already have this file from the same dump timestamp // Skip if we already have this file from the same dump timestamp
let stamp_path = target_dir.join(format!("{filename}.timestamp")); let stamp_path = target_dir.join(format!("{filename}.timestamp"));
if target_path.exists() { if target_path.exists()
if let Ok(existing_stamp) = std::fs::read_to_string(&stamp_path) { && let Ok(existing_stamp) = std::fs::read_to_string(&stamp_path)
if existing_stamp.trim() == timestamp { && existing_stamp.trim() == timestamp
progress(&format!("Skipping {filename} (already downloaded from {timestamp})")); {
progress(&format!(
"Skipping {filename} (already downloaded from {timestamp})"
));
tracing::info!(file = %filename, timestamp = %timestamp, "dump file already up to date, skipping download"); tracing::info!(file = %filename, timestamp = %timestamp, "dump file already up to date, skipping download");
return Ok(target_path); return Ok(target_path);
} }
}
}
progress(&format!("Downloading {filename}...")); progress(&format!("Downloading {filename}..."));
tracing::info!(url = %url, target = %target_path.display(), "downloading MB dump"); tracing::info!(url = %url, target = %target_path.display(), "downloading MB dump");