diff options
author | Erik Johnston <erik@matrix.org> | 2020-09-11 12:22:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 12:22:55 +0100 |
commit | fe8ed1b46f781faa45d1bba8f9308cf47c42010f (patch) | |
tree | 10d5b3cb181a70bd690a6e53461db5de394d9a4b /synapse/storage/__init__.py | |
parent | Use TLSv1.2 for fake servers in tests (#8208) (diff) | |
download | synapse-fe8ed1b46f781faa45d1bba8f9308cf47c42010f.tar.xz |
Make `StreamToken.room_key` be a `RoomStreamToken` instance. (#8281)
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r-- | synapse/storage/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py index 8e5d78f6f7..bbff3c8d5b 100644 --- a/synapse/storage/__init__.py +++ b/synapse/storage/__init__.py @@ -47,6 +47,9 @@ class Storage: # interfaces. self.main = stores.main - self.persistence = EventsPersistenceStorage(hs, stores) self.purge_events = PurgeEventsStorage(hs, stores) self.state = StateGroupStorage(hs, stores) + + self.persistence = None + if stores.persist_events: + self.persistence = EventsPersistenceStorage(hs, stores) |