mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-09-09 15:31:55 +00:00
only need to loop if mau limiting is enabled
This commit is contained in:
parent
5bb39b1e0c
commit
c507fa15ce
@ -531,7 +531,8 @@ def run(hs):
|
||||
limit_usage_by_mau_gauge.set(float(hs.config.limit_usage_by_mau))
|
||||
|
||||
generate_monthly_active_users()
|
||||
clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000)
|
||||
if hs.config.limit_usage_by_mau:
|
||||
clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000)
|
||||
|
||||
if hs.config.report_stats:
|
||||
logger.info("Scheduling stats reporting for 3 hour intervals")
|
||||
|
Loading…
Reference in New Issue
Block a user