mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-30 00:34:26 +01:00
Fix deserialisation of NDJson documents in benchmarks
This commit is contained in:
parent
c6f4775fde
commit
9bc7627e27
@ -161,6 +161,7 @@ fn documents_from_jsonl(reader: impl Read) -> anyhow::Result<Vec<u8>> {
|
|||||||
|
|
||||||
while reader.read_line(&mut buf)? > 0 {
|
while reader.read_line(&mut buf)? > 0 {
|
||||||
documents.extend_from_json(&mut buf.as_bytes())?;
|
documents.extend_from_json(&mut buf.as_bytes())?;
|
||||||
|
buf.clear();
|
||||||
}
|
}
|
||||||
documents.finish()?;
|
documents.finish()?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user