Update the spec of deliver/2 function
This commit is contained in:
parent
ea1ae70833
commit
7c45d988f2
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user