Преглед изворни кода

fix(limiter): adjust type for compatibility

firest пре 2 година
родитељ
комит
95a67f390f
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