perf(emqx_mqtt_caps): direct read mqtt from zone conf
This commit is contained in:
parent
8f4a950a6f
commit
c1d9bc8033
|
@ -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])
|
||||
).
|
||||
|
|
Loading…
Reference in New Issue