apply review comments

This commit is contained in:
Tamo 2022-01-13 18:51:08 +01:00
parent b22c80106f
commit 0605c0ac68
No known key found for this signature in database
GPG Key ID: 20CD8020AFA88D69

View File

@ -91,13 +91,13 @@ fuzz_target!(|batches: Vec<Vec<ArbitraryValue>>| {
let mut documents = Cursor::new(Vec::new()); let mut documents = Cursor::new(Vec::new());
// We ignore all badly generated documents // We ignore all malformed documents
if let Ok(_count) = read_json(json.as_bytes(), &mut documents) { if let Ok(_) = read_json(json.as_bytes(), &mut documents) {
documents.rewind().unwrap(); documents.rewind().unwrap();
let documents = DocumentBatchReader::from_reader(documents).unwrap(); let documents = DocumentBatchReader::from_reader(documents).unwrap();
match index_documents(&mut index, documents) { // A lot of errors can come out of milli and we don't know which ones are normal or not
_ => (), // so we are only going to look for the unexpected panics.
} let _ = index_documents(&mut index, documents);
} }
} }