Skip to content

Commit

Permalink
Uses AppendVecId in AccountsFIle::file_name() (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
brooksprumo authored Mar 22, 2024
1 parent c7cdf23 commit cbd0369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion accounts-db/src/accounts_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use {
account_storage::meta::{
StorableAccountsWithHashesAndWriteVersions, StoredAccountInfo, StoredAccountMeta,
},
accounts_db::AppendVecId,
accounts_hash::AccountHash,
append_vec::{AppendVec, AppendVecError},
storable_accounts::StorableAccounts,
Expand Down Expand Up @@ -103,7 +104,7 @@ impl AccountsFile {
}
}

pub fn file_name(slot: Slot, id: impl std::fmt::Display) -> String {
pub fn file_name(slot: Slot, id: AppendVecId) -> String {
format!("{slot}.{id}")
}

Expand Down

0 comments on commit cbd0369

Please sign in to comment.