Skip to content

Commit

Permalink
Remove the variables to make it apparent taht snapshot_links is the b…
Browse files Browse the repository at this point in the history
…ank_snapshots_dir
  • Loading branch information
xiangzhu70 committed Apr 25, 2023
1 parent 448c662 commit 50ea692
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/src/snapshot_package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ impl AccountsPackage {
}

let bank_snapshot_dir = &bank_snapshot_info.snapshot_dir;
let snapshot_links = bank_snapshot_dir
let bank_snapshots_dir = bank_snapshot_dir
.parent()
.ok_or_else(|| SnapshotError::InvalidSnapshotDirPath(bank_snapshot_dir.to_path_buf()))?
.to_path_buf();

let snapshot_info = SupplementalSnapshotInfo {
snapshot_links,
snapshot_links: bank_snapshots_dir,
archive_format,
snapshot_version,
full_snapshot_archives_dir: full_snapshot_archives_dir.as_ref().to_path_buf(),
Expand Down

0 comments on commit 50ea692

Please sign in to comment.