mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 04:34:59 -04:00
Convert misc database code to async (#8087)
This commit is contained in:
parent
7bdf9828d5
commit
894dae74fe
11 changed files with 39 additions and 64 deletions
|
@ -671,10 +671,9 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||
@cachedList(
|
||||
cached_method_name="get_device_list_last_stream_id_for_remote",
|
||||
list_name="user_ids",
|
||||
inlineCallbacks=True,
|
||||
)
|
||||
def get_device_list_last_stream_id_for_remotes(self, user_ids: str):
|
||||
rows = yield self.db_pool.simple_select_many_batch(
|
||||
async def get_device_list_last_stream_id_for_remotes(self, user_ids: str):
|
||||
rows = await self.db_pool.simple_select_many_batch(
|
||||
table="device_lists_remote_extremeties",
|
||||
column="user_id",
|
||||
iterable=user_ids,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue