refactor: Move PDU checks 1, 2, and 3 into pdu_checks.rs

This commit is contained in:
timedout committed 2026-07-10 20:50:22 +01:00
1 parent b90ceee9f0
commit 5dca3be349
4 files changed
+53 -24

No files matched your search

@@ -127,6 +127,11 @@ impl super::Service {
continue;
}
// IMPORTANT: We can't use the handy dandy `handle_outlier_pdu` function here
// because it may then try to fetch missing auth events, resulting in deep
// recursion. We will do the minimum required steps to validate the PDU here
// (steps 1 through 4).
let mut auth_events_by_key: HashMap<_, _> =
HashMap::with_capacity(pdu.auth_events.len());