rename Succeded to Succeeded

This commit is contained in:
ad hoc 2022-05-30 16:42:51 +02:00
parent ab39df9693
commit 446f1f31e0
No known key found for this signature in database
GPG key ID: 4F00A782990CC643
10 changed files with 111 additions and 17 deletions

View file

@ -200,7 +200,7 @@ where
.await;
let event = match result {
Ok(Ok(result)) => TaskEvent::Succeded {
Ok(Ok(result)) => TaskEvent::Succeeded {
timestamp: OffsetDateTime::now_utc(),
result: TaskResult::DocumentAddition {
indexed_documents: result.indexed_documents,
@ -594,7 +594,7 @@ mod test {
{
assert!(matches!(result.content.first().unwrap().events.last().unwrap(), TaskEvent::Failed { .. }), "{:?}", result);
} else {
assert!(matches!(result.content.first().unwrap().events.last().unwrap(), TaskEvent::Succeded { .. }), "{:?}", result);
assert!(matches!(result.content.first().unwrap().events.last().unwrap(), TaskEvent::Succeeded { .. }), "{:?}", result);
}
}
});