diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-08-14 07:24:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 07:24:26 -0400 |
commit | 894dae74fe8e79911c3c001c8b84620ef3985bf6 (patch) | |
tree | 3ba58a280c6db5eb89e116ef528061592ce8f987 /synapse/storage/databases/main/pusher.py | |
parent | Remove a space at the start of a changelog entry. (diff) | |
download | synapse-894dae74fe8e79911c3c001c8b84620ef3985bf6.tar.xz |
Convert misc database code to async (#8087)
Diffstat (limited to 'synapse/storage/databases/main/pusher.py')
-rw-r--r-- | synapse/storage/databases/main/pusher.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/synapse/storage/databases/main/pusher.py b/synapse/storage/databases/main/pusher.py index b5200fbe79..8b793d1487 100644 --- a/synapse/storage/databases/main/pusher.py +++ b/synapse/storage/databases/main/pusher.py @@ -170,13 +170,10 @@ class PusherWorkerStore(SQLBaseStore): raise NotImplementedError() @cachedList( - cached_method_name="get_if_user_has_pusher", - list_name="user_ids", - num_args=1, - inlineCallbacks=True, + cached_method_name="get_if_user_has_pusher", list_name="user_ids", num_args=1, ) - def get_if_users_have_pushers(self, user_ids): - rows = yield self.db_pool.simple_select_many_batch( + async def get_if_users_have_pushers(self, user_ids): + rows = await self.db_pool.simple_select_many_batch( table="pushers", column="user_name", iterable=user_ids, |