mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08: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 {
|
||||
documents.extend_from_json(&mut buf.as_bytes())?;
|
||||
buf.clear();
|
||||
}
|
||||
documents.finish()?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user