mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-22 22:14:21 -04:00
Convert simple_update* and simple_select* to async (#8173)
This commit is contained in:
parent
a466b67972
commit
4a739c73b4
19 changed files with 164 additions and 133 deletions
|
@ -537,8 +537,8 @@ class UserDirectoryBackgroundUpdateStore(StateDeltasStore):
|
|||
desc="get_user_in_directory",
|
||||
)
|
||||
|
||||
def update_user_directory_stream_pos(self, stream_id):
|
||||
return self.db_pool.simple_update_one(
|
||||
async def update_user_directory_stream_pos(self, stream_id: str) -> None:
|
||||
await self.db_pool.simple_update_one(
|
||||
table="user_directory_stream_pos",
|
||||
keyvalues={},
|
||||
updatevalues={"stream_id": stream_id},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue