From 369a97a714a49ee7248680092a20040da87d7e7c Mon Sep 17 00:00:00 2001 From: "Olivier Wilkinson (reivilibre)" Date: Tue, 20 Dec 2022 14:36:13 +0000 Subject: Use assertions to ensure we don't have our expectations broken --- synapse/handlers/device.py | 6 ++++-- 1 file 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) -- cgit 1.5.1