mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-20 17:27:00 +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])
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user