mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix type spec
This commit is contained in:
parent
47537aa901
commit
69bff82301
@ -82,7 +82,8 @@ set_session(Session) ->
|
|||||||
?ERROR_MSG("failed to set session for redis: ~p", [Err])
|
?ERROR_MSG("failed to set session for redis: ~p", [Err])
|
||||||
end.
|
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) ->
|
delete_session(LUser, LServer, _LResource, SID) ->
|
||||||
USKey = us_to_key({LUser, LServer}),
|
USKey = us_to_key({LUser, LServer}),
|
||||||
case eredis:q(?PROCNAME, ["HGETALL", USKey]) of
|
case eredis:q(?PROCNAME, ["HGETALL", USKey]) of
|
||||||
|
Loading…
Reference in New Issue
Block a user