make the new_shared function synchronous and stop indexing documents when it's not required

This commit is contained in:
Tamo 2024-07-18 17:26:43 +02:00
parent e5345fb0eb
commit 953d3a44bd
8 changed files with 130 additions and 183 deletions

View file

@ -51,7 +51,7 @@ impl Server {
Server { service, _dir: Some(dir) }
}
pub async fn new_shared() -> &'static Self {
pub fn new_shared() -> &'static Self {
&TEST_SHARED_INSTANCE
}