summary refs log tree commit diff
diff options
context:
space:
mode:
authorOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-12-20 14:36:13 +0000
committerOlivier Wilkinson (reivilibre) <oliverw@matrix.org>2022-12-20 18:21:31 +0000
commit369a97a714a49ee7248680092a20040da87d7e7c (patch)
tree7e0912e1ebd1a2c2a8b417c1442a5387add58ca4
parentAdd a replication servlet for multi-user device resync (diff)
downloadsynapse-369a97a714a49ee7248680092a20040da87d7e7c.tar.xz
Use assertions to ensure we don't have our expectations broken
-rw-r--r--synapse/handlers/device.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py

index f95643b897..f18cc32bb1 100644 --- a/synapse/handlers/device.py +++ b/synapse/handlers/device.py
@@ -917,7 +917,8 @@ class DeviceListWorkerUpdater: Returns: Dict from User ID to the same Dict as `user_device_resync`. """ - # TODO(BUG): mark_failed_as_stale is not sent. + # mark_failed_as_stale is not sent. Ensure this doesn't break expectations. + assert mark_failed_as_stale try: return await self._multi_user_device_resync_client(user_ids=user_ids) except SynapseError as err: @@ -946,7 +947,8 @@ class DeviceListWorkerUpdater: request: https://matrix.org/docs/spec/server_server/r0.1.2#get-matrix-federation-v1-user-devices-userid """ - # TODO(BUG): mark_failed_as_stale is not sent. + # mark_failed_as_stale is not sent. Ensure this doesn't break expectations. + assert mark_failed_as_stale return await self._user_device_resync_client(user_id=user_id)