mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
memmap -> memmap2
This commit is contained in:
parent
a2743baaa3
commit
2dfe24f067
5 changed files with 5 additions and 5 deletions
|
@ -11,7 +11,7 @@ byte-unit = { version = "4.0.9", default-features = false, features = ["std"] }
|
|||
crossbeam-channel = "0.5.0"
|
||||
heed = { git = "https://github.com/Kerollmops/heed", tag = "v0.12.1" }
|
||||
meilisearch-tokenizer = { git = "https://github.com/meilisearch/tokenizer.git", tag = "v0.2.5" }
|
||||
memmap = "0.7.0"
|
||||
memmap2 = "0.5.0"
|
||||
milli = { path = "../milli" }
|
||||
once_cell = "1.5.2"
|
||||
rayon = "1.5.0"
|
||||
|
|
|
@ -860,7 +860,7 @@ async fn main() -> anyhow::Result<()> {
|
|||
}
|
||||
|
||||
let file = file.into_std().await;
|
||||
let mmap = unsafe { memmap::Mmap::map(&file).expect("can't map file") };
|
||||
let mmap = unsafe { memmap2::Mmap::map(&file).expect("can't map file") };
|
||||
|
||||
let method = match update_method.as_deref() {
|
||||
Some("replace") => String::from("replace"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue