Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Fix type error that made its way onto develop (#13098)
Browse files Browse the repository at this point in the history
* Fix type error introduced accidentally by #13045

* Newsfile

Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
  • Loading branch information
reivilibre authored Jun 17, 2022
1 parent 5d6f559 commit b26cbe3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.d/13098.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Speed up fetching of device list changes in `/sync` and `/keys/changes`.
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,8 @@ async def get_device_list_changes_in_rooms(

def _get_device_list_changes_in_rooms_txn(
txn: LoggingTransaction,
clause,
args,
clause: str,
args: List[Any],
) -> Set[str]:
txn.execute(sql.format(clause=clause), args)
return {user_id for user_id, in txn}
Expand Down

0 comments on commit b26cbe3

Please sign in to comment.