mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-15 12:17:48 +00:00
Fix type error that made its way onto develop (#13098)
* Fix type error introduced accidentally by #13045 * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
This commit is contained in:
parent
5d6f55959e
commit
b26cbe3d45
2 changed files with 3 additions and 2 deletions
1
changelog.d/13098.feature
Normal file
1
changelog.d/13098.feature
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Speed up fetching of device list changes in `/sync` and `/keys/changes`.
|
|
@ -1245,8 +1245,8 @@ class DeviceWorkerStore(EndToEndKeyWorkerStore):
|
||||||
|
|
||||||
def _get_device_list_changes_in_rooms_txn(
|
def _get_device_list_changes_in_rooms_txn(
|
||||||
txn: LoggingTransaction,
|
txn: LoggingTransaction,
|
||||||
clause,
|
clause: str,
|
||||||
args,
|
args: List[Any],
|
||||||
) -> Set[str]:
|
) -> Set[str]:
|
||||||
txn.execute(sql.format(clause=clause), args)
|
txn.execute(sql.format(clause=clause), args)
|
||||||
return {user_id for user_id, in txn}
|
return {user_id for user_id, in txn}
|
||||||
|
|
Loading…
Add table
Reference in a new issue