File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -146,13 +146,12 @@ def __init__(
146
146
147
147
Args:
148
148
requests_per_second: The number of tokens to add per second to the bucket.
149
- Must be at least 1. The tokens represent "credit" that can be used
150
- to make requests.
149
+ The tokens represent "credit" that can be used to make requests.
151
150
check_every_n_seconds: check whether the tokens are available
152
151
every this many seconds. Can be a float to represent
153
152
fractions of a second.
154
153
max_bucket_size: The maximum number of tokens that can be in the bucket.
155
- This is used to prevent bursts of requests.
154
+ Must be at least 1. Used to prevent bursts of requests.
156
155
"""
157
156
# Number of requests that we can make per second.
158
157
self .requests_per_second = requests_per_second
You can’t perform that action at this time.
0 commit comments