validator: snapshot fetching cleanup (bp #8413) (#8415)

automerge
This commit is contained in:
mergify[bot]
2020-02-24 14:37:24 -08:00
committed by GitHub
parent 80dd5db628
commit 8548c83e48
2 changed files with 138 additions and 112 deletions

View File

@@ -519,7 +519,7 @@ pub fn untar_snapshot_in<P: AsRef<Path>, Q: AsRef<Path>>(
archive.unpack(&unpack_dir)?;
} else if let Err(e) = archive.unpack(&unpack_dir) {
warn!(
"Trying to unpack as uncompressed tar because an error occured: {:?}",
"Trying to unpack as uncompressed tar because an error occurred: {:?}",
e
);
let tar_bz2 = File::open(snapshot_tar)?;