test fail fix

This commit is contained in:
jiangbo212 2022-12-04 22:31:23 +08:00
parent 6bdd37beb8
commit 980776b646

View File

@ -263,6 +263,11 @@ async fn document_addition(
};
}
if let Err(e) = buffer.flush().await {
error!("bufWriter flush error: {}", e);
return Err(MeilisearchHttpError::Payload(ReceivePayloadErr));
};
if buffer_write_size == 0 {
return Err(MeilisearchHttpError::MissingPayload(format));
}