mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-25 11:30:31 +00:00
Initialize SearchActor at start
This commit is contained in:
parent
1bfed0294f
commit
e18be6ec95
1 changed files with 2 additions and 1 deletions
|
@ -16,7 +16,7 @@ use plume_models::{
|
||||||
db_conn::{DbPool, PragmaForeignKey},
|
db_conn::{DbPool, PragmaForeignKey},
|
||||||
instance::Instance,
|
instance::Instance,
|
||||||
migrations::IMPORTED_MIGRATIONS,
|
migrations::IMPORTED_MIGRATIONS,
|
||||||
search::Searcher as UnmanagedSearcher,
|
search::{actor::SearchActor, Searcher as UnmanagedSearcher},
|
||||||
Connection, CONFIG,
|
Connection, CONFIG,
|
||||||
};
|
};
|
||||||
use rocket_csrf::CsrfFairingBuilder;
|
use rocket_csrf::CsrfFairingBuilder;
|
||||||
|
@ -104,6 +104,7 @@ Then try to restart Plume.
|
||||||
&CONFIG.search_index,
|
&CONFIG.search_index,
|
||||||
&CONFIG.search_tokenizers,
|
&CONFIG.search_tokenizers,
|
||||||
));
|
));
|
||||||
|
SearchActor::init(searcher.clone(), dbpool.clone());
|
||||||
let commiter = searcher.clone();
|
let commiter = searcher.clone();
|
||||||
workpool.execute_with_fixed_delay(
|
workpool.execute_with_fixed_delay(
|
||||||
Duration::from_secs(5),
|
Duration::from_secs(5),
|
||||||
|
|
Loading…
Reference in a new issue