summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-16 12:53:15 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-16 12:53:15 +0100
commit364d6167926d5d8b2a312e3d35623d2e05330e0a (patch)
tree20a0982d674169db75861eba08e0d76b969e8a38 /synapse/server.py
parentAccess replication_url from the worker config directly (diff)
downloadsynapse-364d6167926d5d8b2a312e3d35623d2e05330e0a.tar.xz
Access the event_cache_size directly from the server object.
This means that the workers can override the event_cache_size
directly without clobbering the value in the main synapse config.
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index dd4b81c658..b3c31ece73 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -236,6 +236,9 @@ class HomeServer(object):
     def remove_pusher(self, app_id, push_key, user_id):
         return self.get_pusherpool().remove_pusher(app_id, push_key, user_id)
 
+    def get_event_cache_size(self):
+        return self.config.event_cache_size
+
 
 def _make_dependency_method(depname):
     def _get(hs):