mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-07-27 23:15:20 -04:00
wrap _get_e2e_device_keys_and_signatures_txn
in a non-txn method (#8231)
We have three things which all call `_get_e2e_device_keys_and_signatures_txn` with their own `runInteraction`. Factor out the common code.
This commit is contained in:
parent
c8758cb72f
commit
6f6f371a87
3 changed files with 40 additions and 17 deletions
|
@ -255,9 +255,7 @@ class DeviceWorkerStore(SQLBaseStore):
|
|||
List of objects representing an device update EDU
|
||||
"""
|
||||
devices = (
|
||||
await self.db_pool.runInteraction(
|
||||
"get_e2e_device_keys_and_signatures_txn",
|
||||
self._get_e2e_device_keys_and_signatures_txn,
|
||||
await self.get_e2e_device_keys_and_signatures(
|
||||
query_map.keys(),
|
||||
include_all_devices=True,
|
||||
include_deleted_devices=True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue