fix: fix static check error
This commit is contained in:
parent
6879df9c5c
commit
712cdb3152
|
@ -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],
|
||||||
|
|
|
@ -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)).
|
||||||
|
|
Loading…
Reference in New Issue