Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Give the server config to the RoomWorkerStore #6509

Merged
merged 2 commits into from
Dec 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/6509.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix pusher worker failing because it can't retrieve retention policies for rooms.
babolivier marked this conversation as resolved.
Show resolved Hide resolved
5 changes: 5 additions & 0 deletions synapse/storage/data_stores/main/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@


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.

Expand Down