diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-10-08 14:38:14 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-10-08 14:38:14 +0100 |
commit | b1c0a4ceb3c2c5ca51f0b32efcd58d8493fd9b99 (patch) | |
tree | 4f47ca8360858f46a73f207496b93aaa9913b058 | |
parent | Don't end up with 4 classes in registration (diff) | |
download | synapse-b1c0a4ceb3c2c5ca51f0b32efcd58d8493fd9b99.tar.xz |
Cleanup client_ips
-rw-r--r-- | synapse/storage/client_ips.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/synapse/storage/client_ips.py b/synapse/storage/client_ips.py index 1d89b50f57..067820a5da 100644 --- a/synapse/storage/client_ips.py +++ b/synapse/storage/client_ips.py @@ -35,15 +35,8 @@ LAST_SEEN_GRANULARITY = 120 * 1000 class ClientIpBackgroundUpdateStore(background_updates.BackgroundUpdateStore): def __init__(self, db_conn, hs): - - self.client_ip_last_seen = Cache( - name="client_ip_last_seen", keylen=4, max_entries=50000 * CACHE_SIZE_FACTOR - ) - super(ClientIpBackgroundUpdateStore, self).__init__(db_conn, hs) - self.user_ips_max_age = hs.config.user_ips_max_age - self.register_background_index_update( "user_ips_device_index", index_name="user_ips_device_id", |