From 69bff82301f5cabc464db1c1e74c59671addcd14 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Mon, 6 Apr 2015 12:38:54 +0300 Subject: [PATCH] Fix type spec --- src/ejabberd_sm_redis.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ejabberd_sm_redis.erl b/src/ejabberd_sm_redis.erl index 7abab1847..0283f9c3e 100644 --- a/src/ejabberd_sm_redis.erl +++ b/src/ejabberd_sm_redis.erl @@ -82,7 +82,8 @@ set_session(Session) -> ?ERROR_MSG("failed to set session for redis: ~p", [Err]) end. --spec delete_session(binary(), binary(), binary(), sid()) -> ok. +-spec delete_session(binary(), binary(), binary(), sid()) -> + {ok, #session{}} | {error, notfound}. delete_session(LUser, LServer, _LResource, SID) -> USKey = us_to_key({LUser, LServer}), case eredis:q(?PROCNAME, ["HGETALL", USKey]) of