bufread documents

This commit is contained in:
ad hoc 2022-03-07 10:29:52 +01:00
parent df518d8b0b
commit 6cf82ba993
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -211,6 +211,8 @@ impl Performer for DocumentAddition {
println!("parsing documents...");
let reader = BufReader::new(reader);
let documents = match self.format {
DocumentAdditionFormat::Csv => documents_from_csv(reader)?,
DocumentAdditionFormat::Json => documents_from_json(reader)?,