mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 08:46:04 -04:00
Merge pull request #6484 from matrix-org/erikj/port_sync_handler
Port SyncHandler to async/await
This commit is contained in:
commit
a9b393340f
12 changed files with 208 additions and 202 deletions
|
@ -250,7 +250,7 @@ class AccountDataWorkerStore(SQLBaseStore):
|
|||
user_id, int(stream_id)
|
||||
)
|
||||
if not changed:
|
||||
return {}, {}
|
||||
return defer.succeed(({}, {}))
|
||||
|
||||
return self.db.runInteraction(
|
||||
"get_updated_account_data_for_user", get_updated_account_data_for_user_txn
|
||||
|
|
|
@ -1111,7 +1111,7 @@ class GroupServerStore(SQLBaseStore):
|
|||
user_id, from_token
|
||||
)
|
||||
if not has_changed:
|
||||
return []
|
||||
return defer.succeed([])
|
||||
|
||||
def _get_groups_changes_for_user_txn(txn):
|
||||
sql = """
|
||||
|
@ -1141,7 +1141,7 @@ class GroupServerStore(SQLBaseStore):
|
|||
from_token
|
||||
)
|
||||
if not has_changed:
|
||||
return []
|
||||
return defer.succeed([])
|
||||
|
||||
def _get_all_groups_changes_txn(txn):
|
||||
sql = """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue