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

Commit

Permalink
Add comment about 1<<62
Browse files Browse the repository at this point in the history
  • Loading branch information
reivilibre committed Mar 16, 2023
1 parent e26901e commit 2995db1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions synapse/handlers/user_directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ async def _unsafe_refresh_remote_profiles(self) -> None:
if not servers_to_refresh:
# Do we have any backing-off servers that we should try again
# for eventually?
# By setting `now` is a point in the far future, we can ask for
# which server/user is next to be refreshed, even though it is
# not actually refreshable *now*.
end_of_time = 1 << 62
backing_off_servers = (
await self.store.get_remote_servers_with_profiles_to_refresh(
Expand Down

0 comments on commit 2995db1

Please sign in to comment.