mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
Changed "10s per second" to "tens of operations per second" because 10s reads like "10 seconds" not "<100"
parent
8911f73942
commit
3573e4b080
@ -1,7 +1,7 @@
|
|||||||
# Rate Limiting
|
# Rate Limiting
|
||||||
|
|
||||||
To limit the rate of operations per unit time, use a [time.Ticker](http://golang.org/pkg/time/#NewTicker).
|
To limit the rate of operations per unit time, use a [time.Ticker](http://golang.org/pkg/time/#NewTicker).
|
||||||
This works well for rates up to 10s per second.
|
This works well for rates up to tens of operations per second.
|
||||||
For higher rates, prefer a token bucket rate limiter (search godoc.org for
|
For higher rates, prefer a token bucket rate limiter (search godoc.org for
|
||||||
[rate limit](http://godoc.org/?q=rate+limit)).
|
[rate limit](http://godoc.org/?q=rate+limit)).
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user