Merge pull request #10686 from lafirest/fix/limiter_burst_type

fix(limiter): adjust type for compatibility
This commit is contained in:
zhongwencool 2023-05-12 19:58:20 +08:00 committed by GitHub
commit f94d280923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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