From a6262ffb303b22f332d0fc45f89e465b40a22b02 Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Mon, 22 Jul 2019 17:07:58 +0800 Subject: [PATCH] Remove the 'rc' field from DEFAULT_SUBOPTS --- include/emqx_client.hrl | 4 +++- include/emqx_mqtt.hrl | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/emqx_client.hrl b/include/emqx_client.hrl index b23a02f65..622a51249 100644 --- a/include/emqx_client.hrl +++ b/include/emqx_client.hrl @@ -1,4 +1,5 @@ -%% Copyright (c) 2013-2019 EMQ Technologies Co., Ltd. All Rights Reserved. +%%-------------------------------------------------------------------- +%% Copyright (c) 2019 EMQ Technologies Co., Ltd. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -11,6 +12,7 @@ %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. %% See the License for the specific language governing permissions and %% limitations under the License. +%%-------------------------------------------------------------------- -ifndef(EMQX_CLIENT_HRL). -define(EMQX_CLIENT_HRL, true). diff --git a/include/emqx_mqtt.hrl b/include/emqx_mqtt.hrl index 52b5d4313..854399999 100644 --- a/include/emqx_mqtt.hrl +++ b/include/emqx_mqtt.hrl @@ -204,8 +204,7 @@ -define(DEFAULT_SUBOPTS, #{rh => 0, %% Retain Handling rap => 0, %% Retain as Publish nl => 0, %% No Local - qos => 0, %% QoS - rc => 0 %% Reason Code + qos => 0 %% QoS }). -record(mqtt_packet_connect, {