From 0a6f6e7875acb03cc12ca1dd339d1ef815af8d3a Mon Sep 17 00:00:00 2001 From: Wiebe Cazemier Date: Tue, 19 Mar 2024 21:50:47 +0100 Subject: [PATCH] Fix typo in reason codes enum --- types.h | 2 +- utils.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types.h b/types.h index e4746a2d..1c8a9eeb 100644 --- a/types.h +++ b/types.h @@ -131,7 +131,7 @@ enum class ReasonCodes TopicAliasInvalid = 148, PacketTooLarge = 149, MessageRateTooHigh = 150, - QuoteExceeded = 151, + QuotaExceeded = 151, AdministrativeAction = 152, PayloadFormatInvalid = 153, RetainNotSupported = 154, diff --git a/utils.cpp b/utils.cpp index 2db9e6d1..24b5f8fd 100644 --- a/utils.cpp +++ b/utils.cpp @@ -917,8 +917,8 @@ std::string reasonCodeToString(ReasonCodes code) return "PacketTooLarge"; case (ReasonCodes::MessageRateTooHigh): return "MessageRateTooHigh"; - case (ReasonCodes::QuoteExceeded): - return "QuoteExceeded"; + case (ReasonCodes::QuotaExceeded): + return "QuotaExceeded"; case (ReasonCodes::AdministrativeAction): return "AdministrativeAction"; case (ReasonCodes::PayloadFormatInvalid):