mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 18:45:06 +08:00
apply review comments
This commit is contained in:
parent
b22c80106f
commit
0605c0ac68
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user