diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-06-16 12:53:15 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-06-16 12:53:15 +0100 |
commit | 364d6167926d5d8b2a312e3d35623d2e05330e0a (patch) | |
tree | 20a0982d674169db75861eba08e0d76b969e8a38 /synapse/server.py | |
parent | Access replication_url from the worker config directly (diff) | |
download | synapse-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.py | 3 |
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): |