mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 04:17:10 +02:00
make the new_shared function synchronous and stop indexing documents when it's not required
This commit is contained in:
parent
e5345fb0eb
commit
953d3a44bd
8 changed files with 130 additions and 183 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue