diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-12-10 13:05:35 +0000 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-12-10 13:05:35 +0000 |
commit | 3bd049bbb771c18ba20aa724f240a82a394d0ad2 (patch) | |
tree | 7a1ce083f8ac1d65196ff685851295cbac54d373 /synapse | |
parent | Merge pull request #6507 from matrix-org/babolivier/pusher-room-store (diff) | |
download | synapse-3bd049bbb771c18ba20aa724f240a82a394d0ad2.tar.xz |
Give the server config to the RoomWorkerStore
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/storage/data_stores/main/room.py | 5 |
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. |