From 0f576f24362b059b6c76616f7e2e49de821c76da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20D=C5=82ugosz?= Date: Wed, 26 Oct 2022 09:26:30 +0200 Subject: [PATCH] Code review follow-up --- src/mod_ping.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_ping.erl b/src/mod_ping.erl index 6d755ab76e0..2614d016b62 100644 --- a/src/mod_ping.erl +++ b/src/mod_ping.erl @@ -164,7 +164,7 @@ handle_remote_hook(HandlerState, _, _) -> -spec user_online(Acc, Params, Extra) -> {ok, Acc} when Acc :: ok, - Params :: #{sid := 'undefined' | ejabberd_sm:sid()}, + Params :: #{sid := ejabberd_sm:sid()}, Extra :: map(). user_online(Acc, #{sid := {_, Pid}}, _) -> ejabberd_c2s:run_remote_hook(Pid, mod_ping, init), @@ -172,7 +172,7 @@ user_online(Acc, #{sid := {_, Pid}}, _) -> -spec user_offline(Acc, Params, Extra) -> {ok, Acc} when Acc :: mongoose_acc:t(), - Params :: #{sid := 'undefined' | ejabberd_sm:sid()}, + Params :: #{sid := ejabberd_sm:sid()}, Extra :: map(). user_offline(Acc, #{sid := {_, Pid}}, _) -> ejabberd_c2s:run_remote_hook(Pid, mod_ping, remove_timer),