feat(mqttconn): deprecate `mode` config parameter

It adds no value: the only mode was `cluster_shareload` and we just as
well can decide to "share" the load across cluster just by looking if
the remote topic is shared subcription filter or not.
This commit is contained in:
Andrew Mayorov 2023-05-29 14:01:59 +03:00
parent 4e6269bedb
commit 6e97dffdb8
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 2 additions and 1 deletions

View File

@ -68,7 +68,8 @@ fields("server_configs") ->
hoconsc:enum([cluster_shareload]),
#{
default => cluster_shareload,
desc => ?DESC("mode")
desc => ?DESC("mode"),
deprecated => {since, "v5.1.0 & e5.1.0"}
}
)},
{server, emqx_schema:servers_sc(#{desc => ?DESC("server")}, ?MQTT_HOST_OPTS)},