diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-07 16:43:00 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-07 16:43:00 +0000 |
commit | f5cf3638e9c6086e1c33ddad8eda9298cf53a58e (patch) | |
tree | 6bfc4f35284e314bb824f5f7a75c1c367ec01992 /synapse/storage/_base.py | |
parent | Merge pull request #2636 from farialima/me-master (diff) | |
download | synapse-f5cf3638e9c6086e1c33ddad8eda9298cf53a58e.tar.xz |
move _state_group_cache to statestore
this is internal to statestore, so let's keep it there.
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 6caf7b3356..a37d1934ec 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -16,8 +16,6 @@ import logging from synapse.api.errors import StoreError from synapse.util.logcontext import LoggingContext, PreserveLoggingContext -from synapse.util.caches import CACHE_SIZE_FACTOR -from synapse.util.caches.dictionary_cache import DictionaryCache from synapse.util.caches.descriptors import Cache from synapse.storage.engines import PostgresEngine import synapse.metrics @@ -180,10 +178,6 @@ class SQLBaseStore(object): self._get_event_cache = Cache("*getEvent*", keylen=3, max_entries=hs.config.event_cache_size) - self._state_group_cache = DictionaryCache( - "*stateGroupCache*", 100000 * CACHE_SIZE_FACTOR - ) - self._event_fetch_lock = threading.Condition() self._event_fetch_list = [] self._event_fetch_ongoing = 0 |