mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-27 12:08:32 +03:00
Make class var local
This commit is contained in:
parent
227c491510
commit
4d88958cf6
1 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ class MediaRepository(object):
|
||||||
|
|
||||||
# List of StorageProviders where we should search for media and
|
# List of StorageProviders where we should search for media and
|
||||||
# potentially upload to.
|
# potentially upload to.
|
||||||
self.storage_providers = []
|
storage_providers = []
|
||||||
|
|
||||||
# TODO: Move this into config and allow other storage providers to be
|
# TODO: Move this into config and allow other storage providers to be
|
||||||
# defined.
|
# defined.
|
||||||
|
@ -92,10 +92,10 @@ class MediaRepository(object):
|
||||||
store_synchronous=hs.config.synchronous_backup_media_store,
|
store_synchronous=hs.config.synchronous_backup_media_store,
|
||||||
store_remote=True,
|
store_remote=True,
|
||||||
)
|
)
|
||||||
self.storage_providers.append(provider)
|
storage_providers.append(provider)
|
||||||
|
|
||||||
self.media_storage = MediaStorage(
|
self.media_storage = MediaStorage(
|
||||||
self.primary_base_path, self.filepaths, self.storage_providers,
|
self.primary_base_path, self.filepaths, storage_providers,
|
||||||
)
|
)
|
||||||
|
|
||||||
self.clock.looping_call(
|
self.clock.looping_call(
|
||||||
|
|
Loading…
Reference in a new issue