summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2022-11-22 17:26:38 +0100
committerMathieu Velten <mathieuv@matrix.org>2022-11-22 18:10:08 +0100
commit6ac2f573ec48c9f49aa197ea21e465300f5963c6 (patch)
treecf595aae589766d871f4e2ff0e48b2b247b77bec /synapse
parentAdd type ignore unused-awaitable to places adding callbacks to a deffered (diff)
downloadsynapse-6ac2f573ec48c9f49aa197ea21e465300f5963c6.tar.xz
Add type ignore unused-awaitable to looping_call immediate call
Diffstat (limited to 'synapse')
-rw-r--r--synapse/app/phone_stats_home.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/app/phone_stats_home.py b/synapse/app/phone_stats_home.py

index 53db1e85b3..4599214514 100644 --- a/synapse/app/phone_stats_home.py +++ b/synapse/app/phone_stats_home.py
@@ -189,7 +189,7 @@ def start_phone_stats_home(hs: "HomeServer") -> None: clock.looping_call( hs.get_datastores().main.reap_monthly_active_users, 1000 * 60 * 60 ) - hs.get_datastores().main.reap_monthly_active_users() + hs.get_datastores().main.reap_monthly_active_users() # type: ignore[unused-awaitable] @wrap_as_background_process("generate_monthly_active_users") async def generate_monthly_active_users() -> None: @@ -212,7 +212,7 @@ def start_phone_stats_home(hs: "HomeServer") -> None: max_mau_gauge.set(float(hs.config.server.max_mau_value)) if hs.config.server.limit_usage_by_mau or hs.config.server.mau_stats_only: - generate_monthly_active_users() + generate_monthly_active_users() # type: ignore[unused-awaitable] clock.looping_call(generate_monthly_active_users, 5 * 60 * 1000) # End of monthly active user settings