Update the spec of deliver/2 function

This commit is contained in:
Feng Lee 2018-08-31 16:57:43 +08:00
parent ea1ae70833
commit 7c45d988f2
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@ puback(?QOS_2, PacketId, {ok, _}, PState) ->
%% Deliver Packet -> Client
%%------------------------------------------------------------------------------
-spec(deliver(term(), state()) -> {ok, state()} | {error, term()}).
-spec(deliver(tuple(), state()) -> {ok, state()} | {error, term()}).
deliver({connack, ReasonCode}, PState) ->
send(?CONNACK_PACKET(ReasonCode), PState);