mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-12-24 11:00:34 +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},
|
||||
instance::Instance,
|
||||
migrations::IMPORTED_MIGRATIONS,
|
||||
search::Searcher as UnmanagedSearcher,
|
||||
search::{actor::SearchActor, Searcher as UnmanagedSearcher},
|
||||
Connection, CONFIG,
|
||||
};
|
||||
use rocket_csrf::CsrfFairingBuilder;
|
||||
|
@ -104,6 +104,7 @@ Then try to restart Plume.
|
|||
&CONFIG.search_index,
|
||||
&CONFIG.search_tokenizers,
|
||||
));
|
||||
SearchActor::init(searcher.clone(), dbpool.clone());
|
||||
let commiter = searcher.clone();
|
||||
workpool.execute_with_fixed_delay(
|
||||
Duration::from_secs(5),
|
||||
|
|
Loading…
Reference in a new issue