fix: fix static check error

This commit is contained in:
EMQ-YangM 2022-04-29 09:11:06 +08:00
parent 6879df9c5c
commit 712cdb3152
2 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ init_source(#{type := Type} = Source) ->
init_metrics(Source) -> init_metrics(Source) ->
TypeName = type(Source), TypeName = type(Source),
ok = emqx_plugin_libs_metrics:create_metrics( emqx_plugin_libs_metrics:create_metrics(
authz_metrics, authz_metrics,
TypeName, TypeName,
[matched, allow, deny, ignore], [matched, allow, deny, ignore],

View File

@ -72,7 +72,7 @@
rate := #{atom() => rate()} rate := #{atom() => rate()}
}. }.
-type handler_name() :: atom(). -type handler_name() :: atom().
-type metric_id() :: binary(). -type metric_id() :: binary() | atom().
-define(CntrRef(Name), {?MODULE, Name}). -define(CntrRef(Name), {?MODULE, Name}).
-define(SAMPCOUNT_5M, (?SECS_5M div ?SAMPLING)). -define(SAMPCOUNT_5M, (?SECS_5M div ?SAMPLING)).