mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-23 06:43:09 -06:00
Reduce rate limit threshold
This commit is contained in:
parent
123ee630b7
commit
b61805b5d7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue