Skip to content

Commit

Permalink
Use AFP instead of T
Browse files Browse the repository at this point in the history
  • Loading branch information
yhchiang-sol committed Mar 26, 2024
1 parent 7cb5a1c commit 37569af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts-db/src/accounts_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1030,15 +1030,15 @@ pub struct AccountStorageEntry {
}

impl AccountStorageEntry {
pub fn new<T: AccountsFileProvider>(
pub fn new<AFP: AccountsFileProvider>(
path: &Path,
slot: Slot,
id: AccountsFileId,
file_size: u64,
) -> Self {
let tail = AccountsFile::file_name(slot, id);
let path = Path::new(path).join(tail);
let accounts = T::new_writable(path, file_size);
let accounts = AFP::new_writable(path, file_size);

Self {
id,
Expand Down

0 comments on commit 37569af

Please sign in to comment.