stats: fix stat spec

This commit is contained in:
Oneric 2024-11-24 17:45:08 +01:00
parent 573ca012ab
commit 9bf1460a40

View file

@ -39,7 +39,8 @@ def force_update do
@spec get_stats() :: %{ @spec get_stats() :: %{
domain_count: non_neg_integer(), domain_count: non_neg_integer(),
status_count: non_neg_integer(), status_count: non_neg_integer(),
user_count: non_neg_integer() user_count: non_neg_integer(),
remote_user_count: non_neg_integer()
} }
def get_stats do def get_stats do
%{stats: stats} = GenServer.call(__MODULE__, :get_state) %{stats: stats} = GenServer.call(__MODULE__, :get_state)
@ -60,7 +61,8 @@ def get_peers do
stats: %{ stats: %{
domain_count: non_neg_integer(), domain_count: non_neg_integer(),
status_count: non_neg_integer(), status_count: non_neg_integer(),
user_count: non_neg_integer() user_count: non_neg_integer(),
remote_user_count: non_neg_integer()
} }
} }
def calculate_stat_data do def calculate_stat_data do