diff options
author | Richard van der Hoff <richard@matrix.org> | 2017-11-21 11:08:08 +0000 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2017-11-22 16:19:49 +0000 |
commit | e1fd4751de8e96907ea97afaf91525e68ce22227 (patch) | |
tree | f7b2374e66930e40e0bf00a96f61e129a931dee4 /synapse/server.pyi | |
parent | Merge pull request #2700 from matrix-org/rav/worker_docs (diff) | |
download | synapse-e1fd4751de8e96907ea97afaf91525e68ce22227.tar.xz |
Build MediaRepositoryResource as a homeserver dependency
This avoids the scenario where we have four different PreviewUrlResources configured on a single app, each of which have their own caches and cache clearing jobs.
Diffstat (limited to '')
-rw-r--r-- | synapse/server.pyi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/server.pyi b/synapse/server.pyi index e8c0386b7f..3064a497eb 100644 --- a/synapse/server.pyi +++ b/synapse/server.pyi @@ -5,6 +5,7 @@ import synapse.handlers import synapse.handlers.auth import synapse.handlers.device import synapse.handlers.e2e_keys +import synapse.rest.media.v1.media_repository import synapse.storage import synapse.state @@ -35,3 +36,9 @@ class HomeServer(object): def get_federation_transport_client(self) -> synapse.federation.transport.client.TransportLayerClient: pass + + def get_media_repository_resource(self) -> synapse.rest.media.v1.media_repository.MediaRepositoryResource: + pass + + def get_media_repository(self) -> synapse.rest.media.v1.media_repository.MediaRepository: + pass |