Skip to content

Commit

Permalink
Fix typo in reason codes enum
Browse files Browse the repository at this point in the history
  • Loading branch information
halfgaar committed Mar 19, 2024
1 parent 4683b42 commit 0a6f6e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion types.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ enum class ReasonCodes
TopicAliasInvalid = 148,
PacketTooLarge = 149,
MessageRateTooHigh = 150,
QuoteExceeded = 151,
QuotaExceeded = 151,
AdministrativeAction = 152,
PayloadFormatInvalid = 153,
RetainNotSupported = 154,
Expand Down
4 changes: 2 additions & 2 deletions utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 0a6f6e7

Please sign in to comment.