1
0

Cache needs StreamWorkerStore

for _membership_stream_cache
This commit is contained in:
David Robertson
2021-11-15 16:23:09 +00:00
parent 0e7d79b61d
commit d251ab8785
2 changed files with 3 additions and 1 deletions

View File

@@ -48,10 +48,10 @@ logger = logging.getLogger(__name__)
class SlavedEventStore(
RoomMemberWorkerStore,
StreamWorkerStore,
StateGroupWorkerStore,
UserErasureWorkerStore,
BaseSlavedStore,
StreamWorkerStore,
):
def __init__(self, database: DatabasePool, db_conn, hs: "HomeServer"):
super().__init__(database, db_conn, hs)

View File

@@ -34,6 +34,7 @@ from synapse.storage.databases.main.event_push_actions import (
EventPushActionsWorkerStore,
)
from synapse.storage.databases.main.relations import RelationsWorkerStore
from synapse.storage.databases.main.stream import StreamWorkerStore
from synapse.storage.engines import PostgresEngine
from synapse.storage.util.id_generators import MultiWriterIdGenerator
from synapse.util.caches.descriptors import _CachedFunction
@@ -57,6 +58,7 @@ class CacheInvalidationWorkerStore(
EventFederationWorkerStore,
RelationsWorkerStore,
EventPushActionsWorkerStore,
StreamWorkerStore,
):
# This class must be mixed in with a child class which provides the following
# attribute. TODO: can we get static analysis to enforce this?