Просмотр исходного кода

Merge pull request #10686 from lafirest/fix/limiter_burst_type

fix(limiter): adjust type for compatibility
zhongwencool 2 лет назад
Родитель
Сommit
f94d280923
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      apps/emqx/src/emqx_limiter/src/emqx_limiter_schema.erl

+ 1 - 1
apps/emqx/src/emqx_limiter/src/emqx_limiter_schema.erl

@@ -61,7 +61,7 @@
 -type limiter_id() :: atom().
 -type bucket_name() :: atom().
 -type rate() :: infinity | float().
--type burst_rate() :: 0 | float().
+-type burst_rate() :: number().
 %% this is a compatible type for the deprecated field and type `capacity`.
 -type burst() :: burst_rate().
 %% the capacity of the token bucket