mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 10:14:57 -04:00
Convert some of the general database methods to async (#8100)
This commit is contained in:
parent
e04e465b4d
commit
050e20e7ca
13 changed files with 69 additions and 59 deletions
|
@ -169,7 +169,7 @@ class ApplicationServiceTransactionWorkerStore(
|
|||
service(ApplicationService): The service whose state to set.
|
||||
state(ApplicationServiceState): The connectivity state to apply.
|
||||
Returns:
|
||||
A Deferred which resolves when the state was set successfully.
|
||||
An Awaitable which resolves when the state was set successfully.
|
||||
"""
|
||||
return self.db_pool.simple_upsert(
|
||||
"application_services_state", {"as_id": service.id}, {"state": state}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue