1
0

Short-circuit have_finished_sliding_sync_background_jobs

We only need to check this if returned bump stamp is `None`, which is
rare.
This commit is contained in:
Erik Johnston
2024-09-10 14:04:03 +01:00
parent d8b926d323
commit 864cbcd86f
+2 -2
View File
@@ -1173,8 +1173,8 @@ class SlidingSyncHandler:
# `SCHEMA_COMPAT_VERSION` and run the foreground update for
# `sliding_sync_joined_rooms`/`sliding_sync_membership_snapshots`
# (tracked by https://github.com/element-hq/synapse/issues/17623)
await self.store.have_finished_sliding_sync_background_jobs()
and latest_room_bump_stamp is None
latest_room_bump_stamp is None
and await self.store.have_finished_sliding_sync_background_jobs()
):
return None