summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-12-10 13:05:35 +0000
committerBrendan Abolivier <babolivier@matrix.org>2019-12-10 13:05:35 +0000
commit3bd049bbb771c18ba20aa724f240a82a394d0ad2 (patch)
tree7a1ce083f8ac1d65196ff685851295cbac54d373 /synapse/storage
parentMerge pull request #6507 from matrix-org/babolivier/pusher-room-store (diff)
downloadsynapse-3bd049bbb771c18ba20aa724f240a82a394d0ad2.tar.xz
Give the server config to the RoomWorkerStore
Diffstat (limited to 'synapse/storage')
-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.