summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-12-10 13:43:07 +0000
committerGitHub <noreply@github.com>2019-12-10 13:43:07 +0000
commita964f18887b0138b256933b692559c9612d02504 (patch)
treefe30dfc65619fc4bc7bb6f7c1d64af35fde48859 /synapse
parentMerge pull request #6507 from matrix-org/babolivier/pusher-room-store (diff)
parentChangelog (diff)
downloadsynapse-a964f18887b0138b256933b692559c9612d02504.tar.xz
Merge pull request #6509 from matrix-org/babolivier/fix-room-store-config
Give the server config to the RoomWorkerStore
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/data_stores/main/room.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/data_stores/main/room.py b/synapse/storage/data_stores/main/room.py
index 0148be20d3..aa476d0fbf 100644
--- a/synapse/storage/data_stores/main/room.py
+++ b/synapse/storage/data_stores/main/room.py
@@ -46,6 +46,11 @@ RatelimitOverride = collections.namedtuple(
 
 
 class RoomWorkerStore(SQLBaseStore):
+    def __init__(self, database: Database, db_conn, hs):
+        super(RoomWorkerStore, self).__init__(database, db_conn, hs)
+
+        self.config = hs.config
+
     def get_room(self, room_id):
         """Retrieve a room.