fix(emqx_access_control): reformat code

This commit is contained in:
EMQ-YangM 2022-03-29 14:11:45 +08:00
parent ccc134d061
commit 4c8deeb544
1 changed files with 4 additions and 2 deletions

View File

@ -60,8 +60,10 @@ check_authorization_cache(ClientInfo, PubSub, Topic) ->
emqx_authz_cache:put_authz_cache(PubSub, Topic, AuthzResult),
AuthzResult;
AuthzResult ->
emqx:run_hook('client.check_authz_complete',
[ClientInfo, PubSub, Topic, AuthzResult, cache]),
emqx:run_hook(
'client.check_authz_complete',
[ClientInfo, PubSub, Topic, AuthzResult, cache]
),
inc_acl_metrics(cache_hit),
AuthzResult
end.