From 578199ad3a6b3ad2c4e54f9d49e9af07941413c7 Mon Sep 17 00:00:00 2001 From: DDDHuang <44492639+DDDHuang@users.noreply.github.com> Date: Tue, 18 Jan 2022 10:38:06 +0800 Subject: [PATCH] fix: client metrics count with qos --- src/emqx_connection.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/emqx_connection.erl b/src/emqx_connection.erl index bd9a9fbe4..abba2bcdd 100644 --- a/src/emqx_connection.erl +++ b/src/emqx_connection.erl @@ -858,6 +858,7 @@ inc_incoming_stats(Packet = ?PACKET(Type)) -> case Type =:= ?PUBLISH of true -> inc_counter(recv_msg, 1), + inc_qos_stats(recv_msg, Packet), inc_counter(incoming_pubs, 1); false -> ok