This commit is contained in:
jiangbo212 2022-12-04 23:05:34 +08:00
parent 980776b646
commit 6766712840

View File

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