Skip to content

Commit 7a1406d

Browse files
erikjohnstonrichvdh
authored andcommitted
Prefill client_ip_last_seen in replication
1 parent 6373874 commit 7a1406d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

synapse/replication/slave/storage/client_ips.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ def insert_client_ip(self, user_id, access_token, ip, user_agent, device_id):
4242
if last_seen is not None and (now - last_seen) < LAST_SEEN_GRANULARITY:
4343
return
4444

45+
self.client_ip_last_seen.prefill(key, now)
46+
4547
self.hs.get_tcp_replication().send_user_ip(
4648
user_id, access_token, ip, user_agent, device_id, now
4749
)

0 commit comments

Comments
 (0)