Fix badmatch bug for reload_acl

This commit is contained in:
linjun 2019-03-21 14:40:09 +08:00 committed by turtleDeng
parent 5a401c44fd
commit 3a2f6d5a6c
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ match(Credentials, Topic, [Rule|Rules]) ->
-spec(reload_acl() -> ok | {error, term()}). -spec(reload_acl() -> ok | {error, term()}).
reload_acl() -> reload_acl() ->
try load_rules_from_file(acl_file()) of try load_rules_from_file(acl_file()) of
ok -> _ ->
emqx_logger:info("Reload acl_file ~s successfully", [acl_file()]), emqx_logger:info("Reload acl_file ~s successfully", [acl_file()]),
ok; ok;
{error, Error} -> {error, Error} ->