pass AcctIdxConfig to BucketMapHolder (#19997)

This commit is contained in:
Jeff Washington (jwash)
2021-09-18 09:54:00 -05:00
committed by GitHub
parent bd86f41e18
commit f500c99a6d
3 changed files with 11 additions and 8 deletions

View File

@@ -378,10 +378,13 @@ impl<T: IndexValue> InMemAccountsIndex<T> {
#[cfg(test)]
mod tests {
use super::*;
use crate::accounts_index::BINS_FOR_TESTING;
use crate::accounts_index::{AccountsIndexConfig, BINS_FOR_TESTING};
fn new_for_test<T: IndexValue>() -> InMemAccountsIndex<T> {
let holder = Arc::new(BucketMapHolder::new(BINS_FOR_TESTING));
let holder = Arc::new(BucketMapHolder::new(
BINS_FOR_TESTING,
&Some(AccountsIndexConfig::default()),
));
InMemAccountsIndex::new(&holder, BINS_FOR_TESTING)
}