Fix badmatch bug for reload_acl
This commit is contained in:
parent
5a401c44fd
commit
3a2f6d5a6c
|
@ -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} ->
|
||||||
|
|
Loading…
Reference in New Issue