Skip to content
Snippets Groups Projects
Commit b7f203a5 authored by Neil Johnson's avatar Neil Johnson
Browse files

count_monthly_users is now async

parent 7ff44d92
No related branches found
No related tags found
No related merge requests found
......@@ -519,10 +519,11 @@ def run(hs):
# table will decrease
clock.looping_call(generate_user_daily_visit_stats, 5 * 60 * 1000)
@defer.inlineCallbacks
def generate_monthly_active_users():
count = 0
if hs.config.limit_usage_by_mau:
count = hs.get_datastore().count_monthly_users()
count = yield hs.get_datastore().count_monthly_users()
current_mau_gauge.set(float(count))
max_mau_value_gauge.set(float(hs.config.max_mau_value))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment