Make more normalize
This commit is contained in:
parent
e56252dac6
commit
92251d4a8a
|
@ -311,7 +311,7 @@ unsubscribe(SPid, PacketId, Properties, TopicFilters) ->
|
|||
UnsubReq = {PacketId, Properties, TopicFilters},
|
||||
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) ->
|
||||
gen_server:cast(SPid, {resume, ConnPid, WillMsg}).
|
||||
|
||||
|
|
|
@ -26,7 +26,6 @@ groups() -> [{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}),
|
||||
[resumed, timeout] = lists:reverse(keepalive_recv(KA, [])).
|
||||
|
||||
|
|
Loading…
Reference in New Issue