Просмотр исходного кода

Update the spec of deliver/2 function

Feng Lee 7 лет назад
Родитель
Сommit
7c45d988f2
1 измененных файлов с 1 добавлено и 1 удалено
  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
 %%------------------------------------------------------------------------------
 
--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);