fix: remove duplicated create_metrics
This commit is contained in:
parent
51e025f075
commit
56761ecb74
|
@ -902,12 +902,6 @@ create_authenticator(ConfKeyPath, ChainName, Config) ->
|
|||
raw_config := AuthenticatorsConfig
|
||||
}} ->
|
||||
{ok, AuthenticatorConfig} = find_config(ID, AuthenticatorsConfig),
|
||||
ok = emqx_plugin_libs_metrics:create_metrics(
|
||||
authn_metrics,
|
||||
ID,
|
||||
[matched, success, failed, ignore],
|
||||
[matched]
|
||||
),
|
||||
{200, maps:put(id, ID, convert_certs(fill_defaults(AuthenticatorConfig)))};
|
||||
{error, {_PrePostConfigUpdate, emqx_authentication, Reason}} ->
|
||||
serialize_error(Reason);
|
||||
|
|
Loading…
Reference in New Issue