summary refs log tree commit diff
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2018-02-14 12:24:26 +0000
committerErik Johnston <erik@matrix.org>2018-02-15 09:51:09 +0000
commit8f25cd662705116c6a7b703ed102283b5ae6ad32 (patch)
treedeb416d45655de03fdb03193d40c3976c8c7ae04
parentPrefill client_ip_last_seen in replication (diff)
downloadsynapse-8f25cd662705116c6a7b703ed102283b5ae6ad32.tar.xz
Bump LAST_SEEN_GRANULARITY in client_ips
-rw-r--r--synapse/storage/client_ips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/client_ips.py b/synapse/storage/client_ips.py
index a03d1d6104..fba3ecc09c 100644
--- a/synapse/storage/client_ips.py
+++ b/synapse/storage/client_ips.py
@@ -28,7 +28,7 @@ logger = logging.getLogger(__name__)
 # 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
+LAST_SEEN_GRANULARITY = 10 * 60 * 1000
 
 
 class ClientIpStore(background_updates.BackgroundUpdateStore):