Add the snapshots directory path to the IndexScheduler

This commit is contained in:
Kerollmops 2022-10-25 10:53:25 +02:00 committed by Tamo
parent e65f82bc86
commit 43aa3ce1c7
3 changed files with 12 additions and 2 deletions

View file

@ -113,6 +113,7 @@ pub fn setup_meilisearch(opt: &Opt) -> anyhow::Result<(IndexScheduler, AuthContr
opt.db_path.join("tasks"),
opt.db_path.join("update_files"),
opt.db_path.join("indexes"),
opt.snapshot_dir.clone(),
opt.dumps_dir.clone(),
opt.max_task_db_size.get_bytes() as usize,
opt.max_index_size.get_bytes() as usize,