ensure can report mau stats when hs.config.mau_stats_only is set (#4305)

* ensure can report mau stats when hs.config.mau_stats_only is set
This commit is contained in:
Neil Johnson 2018-12-18 14:36:11 +00:00 committed by GitHub
parent d2f7c4e6b1
commit 7e22cd90f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
changelog.d/4305.bugfix Normal file
View File

@ -0,0 +1 @@
The metric synapse_admin_mau:current previously did not update when config.mau_stats_only was set to True

View File

@ -537,7 +537,7 @@ def run(hs):
) )
start_generate_monthly_active_users() start_generate_monthly_active_users()
if hs.config.limit_usage_by_mau: if hs.config.limit_usage_by_mau or hs.config.mau_stats_only:
clock.looping_call(start_generate_monthly_active_users, 5 * 60 * 1000) clock.looping_call(start_generate_monthly_active_users, 5 * 60 * 1000)
# End of monthly active user settings # End of monthly active user settings