Delete APPLICATION macro from erl-opts in rebar.config

This commit is contained in:
spring2maz 2019-05-19 18:27:36 +02:00 committed by turtleDeng
parent 54f2a768a8
commit ac0e637a4b
2 changed files with 3 additions and 4 deletions

View File

@ -14,8 +14,7 @@
warn_shadow_vars,
warn_unused_import,
warn_obsolete_guard,
debug_info,
{d, 'APPLICATION', emqx}]}.
debug_info]}.
{xref_checks, [undefined_function_calls, undefined_functions,
locals_not_used, deprecated_function_calls,
warnings_as_errors, deprecated_functions]}.

View File

@ -251,8 +251,8 @@ ensure_config(Strategy) ->
ensure_config(Strategy, _AckEnabled = true).
ensure_config(Strategy, AckEnabled) ->
application:set_env(?APPLICATION, shared_subscription_strategy, Strategy),
application:set_env(?APPLICATION, shared_dispatch_ack_enabled, AckEnabled),
application:set_env(emqx, shared_subscription_strategy, Strategy),
application:set_env(emqx, shared_dispatch_ack_enabled, AckEnabled),
ok.
subscribed(Group, Topic, Pid) ->