summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-01-12 11:23:54 +0000
committerErik Johnston <erik@matrix.org>2018-01-12 11:23:54 +0000
commit4d88958cf6f9ed28ecd78990a8f51119eb294279 (patch)
tree9ae832e6527a2135008dc00b3e1c517dd318e995 /synapse/rest
parentComments (diff)
downloadsynapse-4d88958cf6f9ed28ecd78990a8f51119eb294279.tar.xz
Make class var local
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/media/v1/media_repository.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/media/v1/media_repository.py b/synapse/rest/media/v1/media_repository.py
index 6508dbf178..65b16ce4cb 100644
--- a/synapse/rest/media/v1/media_repository.py
+++ b/synapse/rest/media/v1/media_repository.py
@@ -78,7 +78,7 @@ class MediaRepository(object):
 
         # List of StorageProviders where we should search for media and
         # potentially upload to.
-        self.storage_providers = []
+        storage_providers = []
 
         # TODO: Move this into config and allow other storage providers to be
         # defined.
@@ -92,10 +92,10 @@ class MediaRepository(object):
                 store_synchronous=hs.config.synchronous_backup_media_store,
                 store_remote=True,
             )
-            self.storage_providers.append(provider)
+            storage_providers.append(provider)
 
         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(