From 6278951d578b3a1e15c8174052a58b4ff2d55bcd Mon Sep 17 00:00:00 2001 From: DDDHuang <44492639+DDDHuang@users.noreply.github.com> Date: Mon, 17 Jan 2022 15:42:34 +0800 Subject: [PATCH] fix: code style --- src/emqx_connection.erl | 1 - src/emqx_session.erl | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/emqx_connection.erl b/src/emqx_connection.erl index 2c2cc472d..bd9a9fbe4 100644 --- a/src/emqx_connection.erl +++ b/src/emqx_connection.erl @@ -123,7 +123,6 @@ , 'recv_msg.qos2' , 'recv_msg.dropped' , 'recv_msg.dropped.expired' - , send_pkt , send_msg , 'send_msg.qos0' diff --git a/src/emqx_session.erl b/src/emqx_session.erl index 9648083d9..3ba286f54 100644 --- a/src/emqx_session.erl +++ b/src/emqx_session.erl @@ -571,8 +571,9 @@ await(PacketId, Msg, Session = #session{inflight = Inflight}) -> %% Retry Delivery %%-------------------------------------------------------------------- --spec(retry(emqx_types:clientinfo(), session()) -> - {ok, session()} | {ok, replies(), timeout(), session()}). +-spec(retry(emqx_types:clientinfo(), session()) + -> {ok, session()} + | {ok, replies(), timeout(), session()}). retry(ClientInfo, Session = #session{inflight = Inflight, retry_interval = RetryInterval}) -> case emqx_inflight:is_empty(Inflight) of true -> {ok, Session};