diff options
author | Erik Johnston <erik@matrix.org> | 2019-05-14 14:09:33 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-05-14 14:09:33 +0100 |
commit | ae69a6aa9dc3eefc6d945c20328bef7846a8aad2 (patch) | |
tree | bb0a33ed24a89657a8eac4fe819d84be47fed705 /synapse/server.py | |
parent | Newsfile (diff) | |
parent | Newsfile (diff) | |
download | synapse-ae69a6aa9dc3eefc6d945c20328bef7846a8aad2.tar.xz |
Merge branch 'erikj/async_serialize_event' into erikj/reactions_rebase
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 8c30ac2fa5..80d40b9272 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -35,6 +35,7 @@ from synapse.crypto import context_factory from synapse.crypto.keyring import Keyring from synapse.events.builder import EventBuilderFactory from synapse.events.spamcheck import SpamChecker +from synapse.events.utils import EventClientSerializer from synapse.federation.federation_client import FederationClient from synapse.federation.federation_server import ( FederationHandlerRegistry, @@ -185,6 +186,7 @@ class HomeServer(object): 'sendmail', 'registration_handler', 'account_validity_handler', + 'event_client_serializer', ] REQUIRED_ON_MASTER_STARTUP = [ @@ -511,6 +513,9 @@ class HomeServer(object): def build_account_validity_handler(self): return AccountValidityHandler(self) + def build_event_client_serializer(self): + return EventClientSerializer(self) + def remove_pusher(self, app_id, push_key, user_id): return self.get_pusherpool().remove_pusher(app_id, push_key, user_id) |