mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 01:57:41 +08:00
Fix Windows compilation
This commit is contained in:
parent
cae8c89467
commit
7d64e8dbd3
@ -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…
Reference in New Issue
Block a user