From 7afd9d2b06ae7e592abcb7251408f5eb2fc85bb6 Mon Sep 17 00:00:00 2001 From: JianBo He Date: Tue, 13 Jun 2023 14:19:58 +0800 Subject: [PATCH] chore: update changes --- apps/emqx_gateway_exproto/src/emqx_exproto_channel.erl | 5 ++--- changes/ce/fix-11033.en.md | 8 ++++++++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 changes/ce/fix-11033.en.md diff --git a/apps/emqx_gateway_exproto/src/emqx_exproto_channel.erl b/apps/emqx_gateway_exproto/src/emqx_exproto_channel.erl index 4ea317dce..2a144ffeb 100644 --- a/apps/emqx_gateway_exproto/src/emqx_exproto_channel.erl +++ b/apps/emqx_gateway_exproto/src/emqx_exproto_channel.erl @@ -21,7 +21,6 @@ -include_lib("emqx/include/emqx_mqtt.hrl"). -include_lib("emqx/include/types.hrl"). -include_lib("emqx/include/logger.hrl"). --include_lib("snabbkaffe/include/snabbkaffe.hrl"). -export([ info/1, @@ -765,10 +764,10 @@ enrich_clientinfo(InClientInfo = #{proto_name := ProtoName}, ClientInfo) -> <<>> -> ok; Mp -> - ?tp( + ?SLOG( warning, - failed_to_override_mountpoint, #{ + msg => "failed_to_override_mountpoint", reason => "The mountpoint in AuthenticateRequest has been deprecated. " "Please use the `gateway.exproto.mountpoint` configuration.", diff --git a/changes/ce/fix-11033.en.md b/changes/ce/fix-11033.en.md new file mode 100644 index 000000000..455f344cc --- /dev/null +++ b/changes/ce/fix-11033.en.md @@ -0,0 +1,8 @@ +Deprecates the `mountpoint` field in `AuthenticateRequest` in ExProto gateway. + +This field was introduced in v4.x, but in fact, in 5.0 we have provided +`gateway.exproto.mountpoint` for configuration, so there is no need to override +it through the Authenticate request. + +Additionally, updates the default value of `subscriptions_max`, `inflight_max`, +`mqueue_max` to `infinity`