Give the server config to the RoomWorkerStore

This commit is contained in:
Brendan Abolivier 2019-12-10 13:05:35 +00:00
parent 332f3b36e5
commit 3bd049bbb7
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ RatelimitOverride = collections.namedtuple(
class RoomWorkerStore(SQLBaseStore): 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): def get_room(self, room_id):
"""Retrieve a room. """Retrieve a room.