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 {
|
func newRateLimits() *rateLimits {
|
||||||
l := &rateLimits{
|
l := &rateLimits{
|
||||||
limits: make(map[string]chan struct{}),
|
limits: make(map[string]chan struct{}),
|
||||||
maxRequests: 10,
|
maxRequests: 5,
|
||||||
timeInterval: time.Millisecond * 500,
|
timeInterval: time.Second,
|
||||||
}
|
}
|
||||||
go l.clean()
|
go l.clean()
|
||||||
return l
|
return l
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue