accounts default stragglers (#19101)

This commit is contained in:
Jeff Washington (jwash) 2021-08-09 09:00:30 -05:00 committed by GitHub
parent db14bcc43b
commit 1951fe4e80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 7 deletions

View File

@ -60,7 +60,7 @@ fn main() {
if fs::remove_dir_all(path.clone()).is_err() {
println!("Warning: Couldn't remove {:?}", path);
}
let accounts = Accounts::new_with_config(
let accounts = Accounts::new_with_config_for_benches(
vec![path],
&ClusterType::Testnet,
AccountSecondaryIndexes::default(),

View File

@ -1344,12 +1344,6 @@ impl<'a> ReadableAccount for StoredAccountMeta<'a> {
}
}
impl Default for AccountsDb {
fn default() -> Self {
Self::default_with_accounts_index(AccountInfoAccountsIndex::new(BINS_DEFAULT))
}
}
type GenerateIndexAccountsMap<'a> =
HashMap<Pubkey, (StoredMetaWriteVersion, AppendVecId, StoredAccountMeta<'a>)>;