pass AcctIdxConfig to BucketMapHolder (#19997)
This commit is contained in:
committed by
GitHub
parent
bd86f41e18
commit
f500c99a6d
@@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user