Merge pull request #10686 from lafirest/fix/limiter_burst_type
fix(limiter): adjust type for compatibility
This commit is contained in:
commit
f94d280923
|
@ -61,7 +61,7 @@
|
||||||
-type limiter_id() :: atom().
|
-type limiter_id() :: atom().
|
||||||
-type bucket_name() :: atom().
|
-type bucket_name() :: atom().
|
||||||
-type rate() :: infinity | float().
|
-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`.
|
%% this is a compatible type for the deprecated field and type `capacity`.
|
||||||
-type burst() :: burst_rate().
|
-type burst() :: burst_rate().
|
||||||
%% the capacity of the token bucket
|
%% the capacity of the token bucket
|
||||||
|
|
Loading…
Reference in New Issue