Reduce rate limit threshold

This commit is contained in:
Neil Alexander 2020-09-02 17:29:33 +01:00
parent 123ee630b7
commit b61805b5d7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -19,8 +19,8 @@ type rateLimits struct {
func newRateLimits() *rateLimits {
l := &rateLimits{
limits: make(map[string]chan struct{}),
maxRequests: 10,
timeInterval: time.Millisecond * 500,
maxRequests: 5,
timeInterval: time.Second,
}
go l.clean()
return l