From 7c45d988f2d72e4477040e2e4751033abbd5ebfc Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Fri, 31 Aug 2018 16:57:43 +0800 Subject: [PATCH] Update the spec of deliver/2 function --- src/emqx_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx_protocol.erl b/src/emqx_protocol.erl index 018166d20..c703d8a24 100644 --- a/src/emqx_protocol.erl +++ b/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);