diff options
author | Erik Johnston <erik@matrix.org> | 2019-03-06 17:39:32 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2019-03-06 17:39:32 +0000 |
commit | face0c5b3c8ed6d0f29f7eaa3a2f9fd19eb99540 (patch) | |
tree | 11fd17679b5ae909483c39244c4354f66a479bbf | |
parent | Merge pull request #4792 from matrix-org/anoa/replication_tokens (diff) | |
download | synapse-face0c5b3c8ed6d0f29f7eaa3a2f9fd19eb99540.tar.xz |
Prefill client IPs cache on workers
Diffstat (limited to '')
-rw-r--r-- | synapse/replication/slave/storage/client_ips.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/replication/slave/storage/client_ips.py b/synapse/replication/slave/storage/client_ips.py index 60641f1a49..5b8521c770 100644 --- a/synapse/replication/slave/storage/client_ips.py +++ b/synapse/replication/slave/storage/client_ips.py @@ -43,6 +43,8 @@ class SlavedClientIpStore(BaseSlavedStore): if last_seen is not None and (now - last_seen) < LAST_SEEN_GRANULARITY: return + self.client_ip_last_seen.prefill(key, now) + self.hs.get_tcp_replication().send_user_ip( user_id, access_token, ip, user_agent, device_id, now ) |