mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-19 00:17:49 -04:00
Inline _check_event_auth
for outliers (#10926)
* Inline `_check_event_auth` for outliers When we are persisting an outlier, most of `_check_event_auth` is redundant: * `_update_auth_events_and_context_for_auth` does nothing, because the `input_auth_events` are (now) exactly the event's auth_events, which means that `missing_auth` is empty. * we don't care about soft-fail, kicking guest users or `send_on_behalf_of` for outliers ... so the only thing that matters is the auth itself, so let's just do that. * `_auth_and_persist_fetched_events_inner`: de-async `prep` `prep` no longer calls any `async` methods, so let's make it synchronous. * Simplify `_check_event_auth` We no longer need to support outliers here, which makes things rather simpler. * changelog * lint
This commit is contained in:
parent
eb2c7e51c4
commit
2622b28c5c
4 changed files with 38 additions and 59 deletions
|
@ -82,7 +82,6 @@ class MessageAcceptTests(unittest.HomeserverTestCase):
|
|||
event,
|
||||
context,
|
||||
state=None,
|
||||
claimed_auth_event_map=None,
|
||||
backfilled=False,
|
||||
):
|
||||
return context
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue