From cbd0369da1dd9ae1f199264afb7505b21a01370e Mon Sep 17 00:00:00 2001 From: Brooks Date: Thu, 21 Mar 2024 21:27:03 -0400 Subject: [PATCH] Uses AppendVecId in AccountsFIle::file_name() (#372) --- accounts-db/src/accounts_file.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accounts-db/src/accounts_file.rs b/accounts-db/src/accounts_file.rs index 885380cb7814d6..4f373333ae7450 100644 --- a/accounts-db/src/accounts_file.rs +++ b/accounts-db/src/accounts_file.rs @@ -3,6 +3,7 @@ use { account_storage::meta::{ StorableAccountsWithHashesAndWriteVersions, StoredAccountInfo, StoredAccountMeta, }, + accounts_db::AppendVecId, accounts_hash::AccountHash, append_vec::{AppendVec, AppendVecError}, storable_accounts::StorableAccounts, @@ -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}") }