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 #5848 from matrix-org/hawkowl/fix-mediarepo-worker…
Browse files Browse the repository at this point in the history
…-startup

Fix mediarepo worker startup
  • Loading branch information
babolivier committed Aug 13, 2019
2 parents af18780 + 28bce1a commit 3039be8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/5848.feature
@@ -0,0 +1 @@
Synapse will no longer serve any media repo admin endpoints when `enable_media_repo` is set to False in the configuration. If a media repo worker is used, the admin APIs relating to the media repo will be served from it instead.
2 changes: 1 addition & 1 deletion synapse/config/repository.py
Expand Up @@ -93,7 +93,7 @@ def read_config(self, config, **kwargs):
# current worker app is the media repo.
if (
self.enable_media_repo is False
and config.worker_app != "synapse.app.media_repository"
and config.get("worker_app") != "synapse.app.media_repository"
):
self.can_load_media_repo = False
return
Expand Down

0 comments on commit 3039be8

Please sign in to comment.