Fix deserialisation of NDJson documents in benchmarks

This commit is contained in:
Loïc Lecrenier 2022-07-05 15:51:06 +02:00
parent c6f4775fde
commit 9bc7627e27

View File

@ -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()?;