JianBo He 2 лет назад
Родитель
Сommit
7afd9d2b06

+ 2 - 3
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.",

+ 8 - 0
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`