summary refs log tree commit diff
path: root/synapse/storage/background_updates.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-09-01 11:04:17 -0400
committerGitHub <noreply@github.com>2020-09-01 11:04:17 -0400
commit37db6252b7ee0f3e9798a561e2919a67299e08f4 (patch)
treef83dddfd5b1ea892c47162ebe086451894121bcf /synapse/storage/background_updates.py
parentConvert appservice code to async/await. (#8207) (diff)
downloadsynapse-37db6252b7ee0f3e9798a561e2919a67299e08f4.tar.xz
Convert additional databases to async/await part 3 (#8201)
Diffstat (limited to 'synapse/storage/background_updates.py')
-rw-r--r--synapse/storage/background_updates.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/background_updates.py b/synapse/storage/background_updates.py

index 0db900fa0e..67a89cd51a 100644 --- a/synapse/storage/background_updates.py +++ b/synapse/storage/background_updates.py
@@ -433,7 +433,7 @@ class BackgroundUpdater(object): "background_updates", keyvalues={"update_name": update_name} ) - def _background_update_progress(self, update_name: str, progress: dict): + async def _background_update_progress(self, update_name: str, progress: dict): """Update the progress of a background update Args: @@ -441,7 +441,7 @@ class BackgroundUpdater(object): progress: The progress of the update. """ - return self.db_pool.runInteraction( + return await self.db_pool.runInteraction( "background_update_progress", self._background_update_progress_txn, update_name,