Add the snapshots directory path to the IndexScheduler

This commit is contained in:
Kerollmops 2022-10-25 10:53:25 +02:00 committed by Clément Renault
parent e0548e42e7
commit c063f154fb
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
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,