diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-08-26 21:41:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-26 21:41:44 +0100 |
commit | 1800aabfc226938036479d2ab1a750aa34cf3974 (patch) | |
tree | 94c97b493de19e48e111a9b06bcf8e0a6d99c2e9 /synapse/server.py | |
parent | Make `backfill` and `get_missing_events` use the same codepath (#10645) (diff) | |
download | synapse-1800aabfc226938036479d2ab1a750aa34cf3974.tar.xz |
Split `FederationHandler` in half (#10692)
The idea here is to take anything to do with incoming events and move it out to a separate handler, as a way of making FederationHandler smaller.
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index de6517663e..5adeeff61a 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -76,6 +76,7 @@ from synapse.handlers.e2e_room_keys import E2eRoomKeysHandler from synapse.handlers.event_auth import EventAuthHandler from synapse.handlers.events import EventHandler, EventStreamHandler from synapse.handlers.federation import FederationHandler +from synapse.handlers.federation_event import FederationEventHandler from synapse.handlers.groups_local import GroupsLocalHandler, GroupsLocalWorkerHandler from synapse.handlers.identity import IdentityHandler from synapse.handlers.initial_sync import InitialSyncHandler @@ -547,6 +548,10 @@ class HomeServer(metaclass=abc.ABCMeta): return FederationHandler(self) @cache_in_self + def get_federation_event_handler(self) -> FederationEventHandler: + return FederationEventHandler(self) + + @cache_in_self def get_identity_handler(self) -> IdentityHandler: return IdentityHandler(self) |