Explorar o código

Update the spec of deliver/2 function

Feng Lee %!s(int64=7) %!d(string=hai) anos
pai
achega
7c45d988f2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/emqx_protocol.erl

+ 1 - 1
src/emqx_protocol.erl

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