diff options
author | Richard van der Hoff <github@rvanderhoff.org.uk> | 2017-11-15 17:23:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-15 17:23:01 +0000 |
commit | f959c01600d28d5d1a6892f929358ee8ba2b3769 (patch) | |
tree | 0019baf7cb16da23ddafdc19830e0893ec69f34c /synapse/storage/_base.py | |
parent | Merge pull request #2677 from matrix-org/rav/spec_r0.3.0 (diff) | |
parent | Pull out bits of StateStore to a mixin (diff) | |
download | synapse-f959c01600d28d5d1a6892f929358ee8ba2b3769.tar.xz |
Merge pull request #2661 from matrix-org/rav/statereadstore
Pull out bits of StateStore to a mixin
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 e94917d9cd..7ebd4f189d 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 |