Skip to content

Commit

Permalink
Increase last seen granularity to 1h
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Mar 28, 2024
1 parent adbc809 commit 7ff6893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions synapse/storage/databases/main/client_ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@

# Number of msec of granularity to store the user IP 'last seen' time. Smaller
# times give more inserts into the database even for readonly API hits
# 120 seconds == 2 minutes
LAST_SEEN_GRANULARITY = 120 * 1000
# 120 seconds == 2 minutes, Beep: updated to 1h
LAST_SEEN_GRANULARITY = 3600 * 1000

DISABLE_CLIENT_IP_STORAGE = environ.get("SYNAPSE_DISABLE_CLIENT_IP_STORAGE") == "true"

Expand Down

0 comments on commit 7ff6893

Please sign in to comment.