codemod --extensions rs get_snapshot_tar_path get_snapshot_archive_path

This commit is contained in:
Michael Vines
2020-01-23 11:22:37 -07:00
parent ce231602dc
commit b045f9a50d
7 changed files with 22 additions and 15 deletions

View File

@ -323,7 +323,8 @@ fn download_ledger(
download_tar_bz2(rpc_addr, "genesis.tar.bz2", ledger_path, false)?;
if !no_snapshot_fetch {
let snapshot_package = solana_ledger::snapshot_utils::get_snapshot_tar_path(ledger_path);
let snapshot_package =
solana_ledger::snapshot_utils::get_snapshot_archive_path(ledger_path);
if snapshot_package.exists() {
fs::remove_file(&snapshot_package)
.map_err(|err| format!("error removing {:?}: {}", snapshot_package, err))?;