diff options
author | Erik Johnston <erik@matrix.org> | 2018-02-14 12:23:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2018-02-15 09:51:09 +0000 |
commit | dc1299a4b0d5d7c12edf0a28351e40d30c09aa52 (patch) | |
tree | dc20c54760b882e1e77e92474a96e20ec9c39ed4 | |
parent | Move event sending to end in shutdown room admin api (diff) | |
download | synapse-dc1299a4b0d5d7c12edf0a28351e40d30c09aa52.tar.xz |
Prefill client_ip_last_seen in replication
-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 352c9a2aa8..fedf7a3188 100644 --- a/synapse/replication/slave/storage/client_ips.py +++ b/synapse/replication/slave/storage/client_ips.py @@ -42,6 +42,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 ) |