mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 06:39:25 -05:00
Review comments
This commit is contained in:
parent
f8b02c5420
commit
39b50ad42a
@ -315,7 +315,7 @@ redaction_retention_period: 7d
|
|||||||
|
|
||||||
# How long to track users' last seen time and IPs in the database.
|
# How long to track users' last seen time and IPs in the database.
|
||||||
#
|
#
|
||||||
# Defaults to `28d`. Set to `null` to disable.
|
# Defaults to `28d`. Set to `null` to disable clearing out of old rows.
|
||||||
#
|
#
|
||||||
#user_ips_max_age: 14d
|
#user_ips_max_age: 14d
|
||||||
|
|
||||||
|
@ -745,7 +745,7 @@ class ServerConfig(Config):
|
|||||||
|
|
||||||
# How long to track users' last seen time and IPs in the database.
|
# How long to track users' last seen time and IPs in the database.
|
||||||
#
|
#
|
||||||
# Defaults to `28d`. Set to `null` to disable.
|
# Defaults to `28d`. Set to `null` to disable clearing out of old rows.
|
||||||
#
|
#
|
||||||
#user_ips_max_age: 14d
|
#user_ips_max_age: 14d
|
||||||
"""
|
"""
|
||||||
|
@ -148,11 +148,8 @@ class BackgroundUpdateStore(SQLBaseStore):
|
|||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
async def has_completed_background_update(self, update_name):
|
async def has_completed_background_update(self, update_name) -> bool:
|
||||||
"""Check if the given background update has finished running.
|
"""Check if the given background update has finished running.
|
||||||
|
|
||||||
Returns:
|
|
||||||
Deferred[bool]
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self._all_done:
|
if self._all_done:
|
||||||
|
@ -506,7 +506,7 @@ class ClientIpStore(background_updates.BackgroundUpdateStore):
|
|||||||
"""Removes entries in user IPs older than the configured period.
|
"""Removes entries in user IPs older than the configured period.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if not self.user_ips_max_age:
|
if self.user_ips_max_age is None:
|
||||||
# Nothing to do
|
# Nothing to do
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user