diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-07-27 12:21:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-27 12:21:34 -0400 |
commit | 8144bc26a7432463b7e70f9c03198d4724952522 (patch) | |
tree | a678eeec472c27e168dae14648e3ce269ff77377 /synapse/storage | |
parent | update changelog (diff) | |
download | synapse-8144bc26a7432463b7e70f9c03198d4724952522.tar.xz |
Convert push to async/await. (#7948)
Diffstat (limited to 'synapse/storage')
-rw-r--r-- | synapse/storage/data_stores/main/event_push_actions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/data_stores/main/event_push_actions.py b/synapse/storage/data_stores/main/event_push_actions.py index 504babaa7e..18297cf3b8 100644 --- a/synapse/storage/data_stores/main/event_push_actions.py +++ b/synapse/storage/data_stores/main/event_push_actions.py @@ -411,7 +411,7 @@ class EventPushActionsWorkerStore(SQLBaseStore): _get_if_maybe_push_in_range_for_user_txn, ) - def add_push_actions_to_staging(self, event_id, user_id_actions): + async def add_push_actions_to_staging(self, event_id, user_id_actions): """Add the push actions for the event to the push action staging area. Args: @@ -457,7 +457,7 @@ class EventPushActionsWorkerStore(SQLBaseStore): ), ) - return self.db.runInteraction( + return await self.db.runInteraction( "add_push_actions_to_staging", _add_push_actions_to_staging_txn ) |