Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 2995db1

Browse files
committed
Add comment about 1<<62
1 parent e26901e commit 2995db1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

synapse/handlers/user_directory.py

+3
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,9 @@ async def _unsafe_refresh_remote_profiles(self) -> None:
608608
if not servers_to_refresh:
609609
# Do we have any backing-off servers that we should try again
610610
# for eventually?
611+
# By setting `now` is a point in the far future, we can ask for
612+
# which server/user is next to be refreshed, even though it is
613+
# not actually refreshable *now*.
611614
end_of_time = 1 << 62
612615
backing_off_servers = (
613616
await self.store.get_remote_servers_with_profiles_to_refresh(

0 commit comments

Comments
 (0)