Declare the auth path in the index scheduler

This commit is contained in:
Kerollmops 2022-10-25 14:35:10 +02:00 committed by Tamo
parent 67566af599
commit 5151bde209
4 changed files with 13 additions and 4 deletions

View file

@ -110,6 +110,8 @@ pub fn setup_meilisearch(opt: &Opt) -> anyhow::Result<(IndexScheduler, AuthContr
let auth_controller_builder = || AuthController::new(&opt.db_path, &opt.master_key);
let index_scheduler_builder = || {
IndexScheduler::new(
// TODO find a better way to have the path of the auth store
opt.db_path.join("auth"),
opt.db_path.join("tasks"),
opt.db_path.join("update_files"),
opt.db_path.join("indexes"),