fix: use api for setting advanced mqtt features in use

This commit is contained in:
Thales Macedo Garitezi 2022-03-28 09:36:17 -03:00
parent 8f202b6fed
commit 8513580f5a
No known key found for this signature in database
GPG Key ID: DD279F8152A9B6DD
1 changed files with 1 additions and 3 deletions

View File

@ -37,9 +37,7 @@ maybe_enable_modules() ->
RewriteEnabled = length(emqx_conf:get([rewrite], [])) > 0,
RetainerEnabled = emqx_conf:get([retainer, enable], false),
AutoSubscribeEnabled = length(emqx_conf:get([auto_subscribe, topics], [])) > 0,
application:set_env(
emqx_modules,
advanced_mqtt_features_in_use,
emqx_modules:set_advanced_mqtt_features_in_use(
#{
delayed => DelayedEnabled,
topic_rewrite => RewriteEnabled,