Make more normalize

This commit is contained in:
周子博 2018-10-26 17:45:13 +08:00
parent e56252dac6
commit 92251d4a8a
3 changed files with 4 additions and 5 deletions

View File

@ -311,7 +311,7 @@ unsubscribe(SPid, PacketId, Properties, TopicFilters) ->
UnsubReq = {PacketId, Properties, TopicFilters}, UnsubReq = {PacketId, Properties, TopicFilters},
gen_server:cast(SPid, {unsubscribe, self(), UnsubReq}). gen_server:cast(SPid, {unsubscribe, self(), UnsubReq}).
-spec(resume(spid(), pid(), emqx:message()) -> ok). -spec(resume(spid(), pid(), emqx:message() | undefined) -> ok).
resume(SPid, ConnPid, WillMsg) -> resume(SPid, ConnPid, WillMsg) ->
gen_server:cast(SPid, {resume, ConnPid, WillMsg}). gen_server:cast(SPid, {resume, ConnPid, WillMsg}).

View File

@ -26,7 +26,6 @@ groups() -> [{keepalive, [], [t_keepalive]}].
%%-------------------------------------------------------------------- %%--------------------------------------------------------------------
t_keepalive(_) -> t_keepalive(_) ->
{ok, _} = emqx_keepalive:start(fun() -> {ok, 1} end, 0, {keepalive, timeout}),
{ok, KA} = emqx_keepalive:start(fun() -> {ok, 1} end, 1, {keepalive, timeout}), {ok, KA} = emqx_keepalive:start(fun() -> {ok, 1} end, 1, {keepalive, timeout}),
[resumed, timeout] = lists:reverse(keepalive_recv(KA, [])). [resumed, timeout] = lists:reverse(keepalive_recv(KA, [])).