diff options
author | Erik Johnston <erikj@jki.re> | 2018-02-13 18:07:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-13 18:07:10 +0000 |
commit | c0c9327fe009da05a90985bc9c3f9f7acd145eaa (patch) | |
tree | cadb1ace409f9432069abe86f8fbba250480c609 /synapse/app/homeserver.py | |
parent | Fix log message in purge_history (diff) | |
parent | Update docs (diff) | |
download | synapse-c0c9327fe009da05a90985bc9c3f9f7acd145eaa.tar.xz |
Merge pull request #2854 from matrix-org/erikj/event_create_worker
Create a worker for event creation
Diffstat (limited to 'synapse/app/homeserver.py')
-rwxr-xr-x | synapse/app/homeserver.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index cb82a415a6..e375f2bbcf 100755 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -38,6 +38,7 @@ from synapse.metrics import register_memory_metrics from synapse.metrics.resource import METRICS_PREFIX, MetricsResource from synapse.python_dependencies import CONDITIONAL_REQUIREMENTS, \ check_requirements +from synapse.replication.http import ReplicationRestResource, REPLICATION_PREFIX from synapse.replication.tcp.resource import ReplicationStreamProtocolFactory from synapse.rest import ClientRestResource from synapse.rest.key.v1.server_key_resource import LocalKey @@ -219,6 +220,9 @@ class SynapseHomeServer(HomeServer): if name == "metrics" and self.get_config().enable_metrics: resources[METRICS_PREFIX] = MetricsResource(self) + if name == "replication": + resources[REPLICATION_PREFIX] = ReplicationRestResource(self) + return resources def start_listening(self): |