mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
Fix Windows compilation
This commit is contained in:
parent
cae8c89467
commit
7d64e8dbd3
1 changed files with 2 additions and 1 deletions
|
@ -29,8 +29,9 @@ impl<'pl> DocumentOperation<'pl> {
|
|||
}
|
||||
|
||||
/// TODO please give me a type
|
||||
/// The payload is expected to be in the grenad format
|
||||
/// The payload is expected to be in the NDJSON format
|
||||
pub fn add_documents(&mut self, payload: &'pl Mmap) -> Result<()> {
|
||||
#[cfg(unix)]
|
||||
payload.advise(memmap2::Advice::Sequential)?;
|
||||
self.operations.push(Payload::Addition(&payload[..]));
|
||||
Ok(())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue