|
@@ -60,8 +60,10 @@ check_authorization_cache(ClientInfo, PubSub, Topic) ->
|
|
|
emqx_authz_cache:put_authz_cache(PubSub, Topic, AuthzResult),
|
|
emqx_authz_cache:put_authz_cache(PubSub, Topic, AuthzResult),
|
|
|
AuthzResult;
|
|
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),
|
|
inc_acl_metrics(cache_hit),
|
|
|
AuthzResult
|
|
AuthzResult
|
|
|
end.
|
|
end.
|