uber-go / ratelimit

A Go blocking leaky-bucket rate limit implementation
MIT License
4.32k stars 300 forks source link

change limit after start #107

Closed parsibox closed 1 year ago

parsibox commented 1 year ago

hi how can change limit after run? for example i want start with 100 limit and after some work i change it to 500 limit

rabbbit commented 1 year ago

See #76 - we don't plan to support this.

You'll need to construct a new object yourself, or use an alternative package - https://pkg.go.dev/golang.org/x/time/rate#Limiter.SetLimit.