groom accounts_db (#5283)

This commit is contained in:
Rob Walker
2019-07-25 22:59:28 -07:00
committed by GitHub
parent d1eff5d607
commit 8537da19bb
3 changed files with 49 additions and 68 deletions

View File

@@ -46,12 +46,8 @@ pub struct Accounts {
}
impl Accounts {
pub fn new(in_paths: Option<String>) -> Self {
Self::new_with_num_stores(in_paths, 0)
}
pub fn new_with_num_stores(paths: Option<String>, min_num_stores: usize) -> Self {
let accounts_db = Arc::new(AccountsDB::new_with_num_stores(paths, min_num_stores));
pub fn new(paths: Option<String>) -> Self {
let accounts_db = Arc::new(AccountsDB::new(paths));
Accounts {
accounts_db,