Updated RateLimiting (markdown)

Sameer Ajmani 2016-04-22 08:56:07 -04:00
parent 17af5985af
commit 1a0ca7c57e

@ -2,7 +2,7 @@
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 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 such as [golang.org/x/time/rate.Limiter](https://godoc.org/golang.org/x/time/rate) (also search godoc.org for
[rate limit](http://godoc.org/?q=rate+limit)).
```go