Skip to content
Snippets Groups Projects
Unverified Commit 1722b8a5 authored by Patrick Cloke's avatar Patrick Cloke Committed by GitHub
Browse files

Convert delete_url_cache_media to async/await. (#7241)

parent d78cb315
No related branches found
No related tags found
No related merge requests found
Convert some of synapse.rest.media to async/await.
......@@ -367,7 +367,7 @@ class MediaRepositoryStore(MediaRepositoryBackgroundUpdateStore):
"get_url_cache_media_before", _get_url_cache_media_before_txn
)
def delete_url_cache_media(self, media_ids):
async def delete_url_cache_media(self, media_ids):
if len(media_ids) == 0:
return
......@@ -380,6 +380,6 @@ class MediaRepositoryStore(MediaRepositoryBackgroundUpdateStore):
txn.executemany(sql, [(media_id,) for media_id in media_ids])
return self.db.runInteraction(
return await self.db.runInteraction(
"delete_url_cache_media", _delete_url_cache_media_txn
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment