fix: Get_missing_events returns the same event N times

This commit is contained in:
timedout 2026-02-05 21:28:21 +00:00
parent 2558ec0c2a
commit 00c054d356
No known key found for this signature in database
GPG key ID: 0FA334385D0B689F

View file

@ -79,12 +79,12 @@ pub(crate) async fn get_missing_events_route(
continue;
}
i = i.saturating_add(1);
let Ok(event) = to_canonical_object(&pdu) else {
debug_error!(
body.origin = body.origin.as_ref().map(tracing::field::display),
"Failed to convert PDU in database to canonical JSON: {pdu:?}"
);
i = i.saturating_add(1);
continue;
};