use options to schedule snapshot

This commit is contained in:
mpostma
2021-03-17 12:01:56 +01:00
parent ee838be41b
commit c966b1dd94
3 changed files with 21 additions and 14 deletions

View File

@ -60,9 +60,7 @@ impl Data {
let path = options.db_path.clone();
create_dir_all(&path)?;
let index_size = options.max_mdb_size.get_bytes() as usize;
let update_store_size = options.max_udb_size.get_bytes() as usize;
let index_controller = IndexController::new(&path, index_size, update_store_size)?;
let index_controller = IndexController::new(&path, &options)?;
let mut api_keys = ApiKeys {
master: options.clone().master_key,