Skip to content

Commit cbd0369

Browse files
authored
Uses AppendVecId in AccountsFIle::file_name() (#372)
1 parent c7cdf23 commit cbd0369

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

accounts-db/src/accounts_file.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use {
33
account_storage::meta::{
44
StorableAccountsWithHashesAndWriteVersions, StoredAccountInfo, StoredAccountMeta,
55
},
6+
accounts_db::AppendVecId,
67
accounts_hash::AccountHash,
78
append_vec::{AppendVec, AppendVecError},
89
storable_accounts::StorableAccounts,
@@ -103,7 +104,7 @@ impl AccountsFile {
103104
}
104105
}
105106

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

0 commit comments

Comments
 (0)