mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Remove redundant parameters on _check_event_auth
(#11292)
as of #11012, these parameters are unused.
This commit is contained in:
parent
68c258a604
commit
73cbb284b9
1
changelog.d/11292.misc
Normal file
1
changelog.d/11292.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Remove unused parameters on `FederationEventHandler._check_event_auth`.
|
@ -981,8 +981,6 @@ class FederationEventHandler:
|
|||||||
origin,
|
origin,
|
||||||
event,
|
event,
|
||||||
context,
|
context,
|
||||||
state=state,
|
|
||||||
backfilled=backfilled,
|
|
||||||
)
|
)
|
||||||
except AuthError as e:
|
except AuthError as e:
|
||||||
# FIXME richvdh 2021/10/07 I don't think this is reachable. Let's log it
|
# FIXME richvdh 2021/10/07 I don't think this is reachable. Let's log it
|
||||||
@ -1332,8 +1330,6 @@ class FederationEventHandler:
|
|||||||
origin: str,
|
origin: str,
|
||||||
event: EventBase,
|
event: EventBase,
|
||||||
context: EventContext,
|
context: EventContext,
|
||||||
state: Optional[Iterable[EventBase]] = None,
|
|
||||||
backfilled: bool = False,
|
|
||||||
) -> EventContext:
|
) -> EventContext:
|
||||||
"""
|
"""
|
||||||
Checks whether an event should be rejected (for failing auth checks).
|
Checks whether an event should be rejected (for failing auth checks).
|
||||||
@ -1344,12 +1340,6 @@ class FederationEventHandler:
|
|||||||
context:
|
context:
|
||||||
The event context.
|
The event context.
|
||||||
|
|
||||||
state:
|
|
||||||
The state events used to check the event for soft-fail. If this is
|
|
||||||
not provided the current state events will be used.
|
|
||||||
|
|
||||||
backfilled: True if the event was backfilled.
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
The updated context object.
|
The updated context object.
|
||||||
|
|
||||||
|
@ -81,8 +81,6 @@ class MessageAcceptTests(unittest.HomeserverTestCase):
|
|||||||
origin,
|
origin,
|
||||||
event,
|
event,
|
||||||
context,
|
context,
|
||||||
state=None,
|
|
||||||
backfilled=False,
|
|
||||||
):
|
):
|
||||||
return context
|
return context
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user