summary refs log tree commit diff
path: root/synapse/storage/databases/main/client_ips.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2023-08-23 14:00:49 +0100
committerErik Johnston <erik@matrix.org>2023-08-23 14:00:49 +0100
commita8bd3df5e1124417ac6f120183c29219f9f2654e (patch)
tree37cb79418a53c2577646512aff086359c37e63e5 /synapse/storage/databases/main/client_ips.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentFilter out unwanted user_agents from udv. (#16124) (diff)
downloadsynapse-a8bd3df5e1124417ac6f120183c29219f9f2654e.tar.xz
Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes
Diffstat (limited to 'synapse/storage/databases/main/client_ips.py')
-rw-r--r--synapse/storage/databases/main/client_ips.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/databases/main/client_ips.py b/synapse/storage/databases/main/client_ips.py

index 1f6558c3df..e97b844dfa 100644 --- a/synapse/storage/databases/main/client_ips.py +++ b/synapse/storage/databases/main/client_ips.py
@@ -579,6 +579,11 @@ class ClientIpWorkerStore(ClientIpBackgroundUpdateStore, MonthlyActiveUsersWorke device_id: Optional[str], now: Optional[int] = None, ) -> None: + # The sync proxy continuously triggers /sync even if the user is not + # present so should be excluded from user_ips entries. + if user_agent == "sync-v3-proxy-": + return + if not now: now = int(self._clock.time_msec()) key = (user_id, access_token, ip)