fix(limiter): adjust type for compatibility

This commit is contained in:
firest 2023-05-12 18:39:51 +08:00
parent 134ea0615d
commit 95a67f390f
1 changed files with 1 additions and 1 deletions

View File

@ -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