mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 04:24:59 -04:00
Convert calls of async database methods to async (#8166)
This commit is contained in:
parent
c9fa696ea2
commit
9b7ac03af3
14 changed files with 114 additions and 84 deletions
|
@ -2,8 +2,10 @@ from synapse.storage._base import SQLBaseStore
|
|||
|
||||
|
||||
class OpenIdStore(SQLBaseStore):
|
||||
def insert_open_id_token(self, token, ts_valid_until_ms, user_id):
|
||||
return self.db_pool.simple_insert(
|
||||
async def insert_open_id_token(
|
||||
self, token: str, ts_valid_until_ms: int, user_id: str
|
||||
) -> None:
|
||||
await self.db_pool.simple_insert(
|
||||
table="open_id_tokens",
|
||||
values={
|
||||
"token": token,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue