mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 11:57:07 +02:00
Fix deserialisation of NDJson documents in benchmarks
This commit is contained in:
parent
c6f4775fde
commit
9bc7627e27
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ fn documents_from_jsonl(reader: impl Read) -> anyhow::Result<Vec<u8>> {
|
|||
|
||||
while reader.read_line(&mut buf)? > 0 {
|
||||
documents.extend_from_json(&mut buf.as_bytes())?;
|
||||
buf.clear();
|
||||
}
|
||||
documents.finish()?;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue