Tweak interval

This commit is contained in:
Neil Alexander 2020-09-02 17:46:07 +01:00
parent b61805b5d7
commit c83129a366
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 { func newRateLimits() *rateLimits {
l := &rateLimits{ l := &rateLimits{
limits: make(map[string]chan struct{}), limits: make(map[string]chan struct{}),
maxRequests: 5, maxRequests: 10,
timeInterval: time.Second, timeInterval: 250 * time.Millisecond,
} }
go l.clean() go l.clean()
return l return l