From 749494c2771534625b99a58d945d2583eb8c0b39 Mon Sep 17 00:00:00 2001 From: terry-xiaoyu <506895667@qq.com> Date: Sat, 16 Mar 2019 13:08:11 +0800 Subject: [PATCH] Change default internal-rules to #{} --- src/emqx_mod_acl_internal.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emqx_mod_acl_internal.erl b/src/emqx_mod_acl_internal.erl index b829fc9a1..49d919258 100644 --- a/src/emqx_mod_acl_internal.erl +++ b/src/emqx_mod_acl_internal.erl @@ -61,7 +61,7 @@ load_rules_from_file(AclFile) -> subscribe => lists:filter(fun(Rule) -> filter(subscribe, Rule) end, Rules)}; {error, Reason} -> ?LOG(error, "[ACL_INTERNAL] Failed to read ~s: ~p", [AclFile, Reason]), - [] + #{} end. filter(_PubSub, {allow, all}) ->