summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-16 17:29:50 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-16 17:29:50 +0100
commita352b68acf473f59012340b7f481f3dfd6544ac6 (patch)
treed519760f3b97d578c741d5062223189157285a99 /synapse/storage/_base.py
parentAccess the event_cache_size directly from the server object. (diff)
downloadsynapse-a352b68acf473f59012340b7f481f3dfd6544ac6.tar.xz
Use worker_ prefixes for worker config, use existing support for multiple config files
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 2932880cc5..32c6677d47 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -166,7 +166,7 @@ class SQLBaseStore(object):
         self._get_event_counters = PerformanceCounters()
 
         self._get_event_cache = Cache("*getEvent*", keylen=3, lru=True,
-                                      max_entries=hs.get_event_cache_size())
+                                      max_entries=hs.config.event_cache_size)
 
         self._state_group_cache = DictionaryCache(
             "*stateGroupCache*", 2000 * CACHE_SIZE_FACTOR