rename received_document_ids to matched_documents in the DocumentDeletion task type (reimplementation of #2826)

This commit is contained in:
Irevoire 2022-10-25 11:02:26 +02:00 committed by Clément Renault
parent 7ed3f00b1e
commit 0aca5e84b9
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
6 changed files with 22 additions and 41 deletions

View file

@ -373,7 +373,10 @@ impl IndexScheduler {
}
_ => panic!(),
},
Details::DocumentDeletion { received_document_ids, deleted_documents } => {
Details::DocumentDeletion {
matched_documents: received_document_ids,
deleted_documents,
} => {
if let Some(deleted_documents) = deleted_documents {
assert_eq!(status, Status::Succeeded);
assert!(deleted_documents <= received_document_ids as u64);