perf(emqx_mqtt_caps): direct read mqtt from zone conf

This commit is contained in:
William Yang 2023-05-31 15:53:05 +02:00
parent 8f4a950a6f
commit c1d9bc8033
1 changed files with 1 additions and 6 deletions

View File

@ -41,8 +41,6 @@
exclusive_subscription => boolean()
}.
-define(MAX_TOPIC_LEVELS, 65535).
-define(PUBCAP_KEYS, [
max_topic_levels,
max_qos_allowed,
@ -154,8 +152,5 @@ get_caps(Zone) ->
get_caps(Keys, Zone) ->
maps:with(
Keys,
maps:merge(
emqx_config:get([mqtt]),
emqx_config:get_zone_conf(Zone, [mqtt])
)
emqx_config:get_zone_conf(Zone, [mqtt])
).