Change default internal-rules to #{}

This commit is contained in:
terry-xiaoyu 2019-03-16 13:08:11 +08:00
parent 2912d9a41b
commit 749494c277
1 changed files with 1 additions and 1 deletions

View File

@ -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}) ->