Import milli from meilisearch-lib in meilisearch-http

This commit is contained in:
Kerollmops 2022-03-24 14:44:52 +01:00
parent 7e65816d63
commit ee6be4f6b9
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4
4 changed files with 2 additions and 4 deletions

1
Cargo.lock generated
View File

@ -1909,7 +1909,6 @@ dependencies = [
"meilisearch-auth",
"meilisearch-error",
"meilisearch-lib",
"milli",
"mime",
"num_cpus",
"obkv",

View File

@ -47,7 +47,6 @@ log = "0.4.14"
meilisearch-auth = { path = "../meilisearch-auth" }
meilisearch-error = { path = "../meilisearch-error" }
meilisearch-lib = { path = "../meilisearch-lib" }
milli = { git = "https://github.com/meilisearch/milli.git", tag = "v0.24.0" }
mime = "0.3.16"
num_cpus = "1.13.1"
obkv = "0.2.0"

View File

@ -1,10 +1,11 @@
use meilisearch_lib::milli::heed::Env;
use walkdir::WalkDir;
pub trait EnvSizer {
fn size(&self) -> u64;
}
impl EnvSizer for milli::heed::Env {
impl EnvSizer for Env {
fn size(&self) -> u64 {
WalkDir::new(self.path())
.into_iter()

View File

@ -13,7 +13,6 @@ mod update_file_store;
use std::path::Path;
pub use index_controller::MeiliSearch;
pub use milli;
mod compression;