diff options
author | Erik Johnston <erik@matrix.org> | 2017-10-12 18:16:25 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-10-12 18:16:25 +0100 |
commit | d76621a47b7b4b778055760d43df9d02614dac19 (patch) | |
tree | 1ee0064cd1fc9f63a9150cfb9bfc52eb2fe50364 /synapse | |
parent | Don't close prematurely.. (diff) | |
download | synapse-d76621a47b7b4b778055760d43df9d02614dac19.tar.xz |
Fix comments
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/rest/media/v1/filepath.py | 2 | ||||
-rw-r--r-- | synapse/rest/media/v1/preview_url_resource.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/filepath.py b/synapse/rest/media/v1/filepath.py index 43d0eea00d..6923a3fbd3 100644 --- a/synapse/rest/media/v1/filepath.py +++ b/synapse/rest/media/v1/filepath.py @@ -35,7 +35,7 @@ def _wrap_in_base_path(func): class MediaFilePaths(object): """Describes where files are stored on disk. - Most of the function have a `*_rel` variant which returns a file path that + Most of the functions have a `*_rel` variant which returns a file path that is relative to the base media store path. This is mainly used when we want to write to the backup media store (when one is configured) """ diff --git a/synapse/rest/media/v1/preview_url_resource.py b/synapse/rest/media/v1/preview_url_resource.py index a3288c9cc6..e986e855a7 100644 --- a/synapse/rest/media/v1/preview_url_resource.py +++ b/synapse/rest/media/v1/preview_url_resource.py @@ -343,6 +343,9 @@ class PreviewUrlResource(Resource): def _expire_url_cache_data(self): """Clean up expired url cache content, media and thumbnails. """ + + # TODO: Delete from backup media store + now = self.clock.time_msec() # First we delete expired url cache entries |