Fix type spec

This commit is contained in:
Evgeniy Khramtsov 2015-04-06 12:38:54 +03:00
parent 47537aa901
commit 69bff82301
1 changed files with 2 additions and 1 deletions

View File

@ -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