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

Commit

Permalink
Merge pull request #6507 from matrix-org/babolivier/pusher-room-store
Browse files Browse the repository at this point in the history
Make the PusherSlaveStore inherit from the slave RoomStore
  • Loading branch information
erikjohnston authored Dec 10, 2019
2 parents d95736a + ec5fdd1 commit 332f3b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/6507.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.
7 changes: 6 additions & 1 deletion synapse/app/pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
from synapse.replication.slave.storage.events import SlavedEventStore
from synapse.replication.slave.storage.pushers import SlavedPusherStore
from synapse.replication.slave.storage.receipts import SlavedReceiptsStore
from synapse.replication.slave.storage.room import RoomStore
from synapse.replication.tcp.client import ReplicationClientHandler
from synapse.server import HomeServer
from synapse.storage import DataStore
Expand All @@ -45,7 +46,11 @@


class PusherSlaveStore(
SlavedEventStore, SlavedPusherStore, SlavedReceiptsStore, SlavedAccountDataStore
SlavedEventStore,
SlavedPusherStore,
SlavedReceiptsStore,
SlavedAccountDataStore,
RoomStore,
):
update_pusher_last_stream_ordering_and_success = __func__(
DataStore.update_pusher_last_stream_ordering_and_success
Expand Down

0 comments on commit 332f3b3

Please sign in to comment.