This commit is contained in:
JianBo He 2019-12-21 10:31:17 +08:00 committed by Feng Lee
parent 578355442b
commit b3eed9123f
2 changed files with 1 additions and 3 deletions

View File

@ -35,8 +35,6 @@
-spec(authenticate(emqx_types:clientinfo()) -> {ok, result()} | {error, term()}).
authenticate(ClientInfo = #{zone := Zone}) ->
case emqx_hooks:run_fold('client.authenticate', [ClientInfo], default_auth_result(Zone)) of
Result = #{auth_result := success, anonymous := true} ->
{ok, Result};
Result = #{auth_result := success} ->
{ok, Result};
Result ->

View File

@ -158,7 +158,7 @@
%% Client Lifecircle metrics
-define(CLIENT_METRICS,
[{counter, 'client.connected'},
{cpunter, 'client.authenticate'},
{counter, 'client.authenticate'},
{counter, 'client.auth.anonymous'},
{counter, 'client.check_acl'},
{counter, 'client.subscribe'},