feat: change rate limiter timeout to 1s
This commit is contained in:
parent
8e57f7f5ef
commit
5ec6873c57
@ -22,7 +22,7 @@ var (
|
||||
limiterTimeout time.Duration = time.Second / 20
|
||||
limiterMaxTimeout time.Duration = time.Second
|
||||
limiterBurst int = 1
|
||||
limiterUpdateDelay time.Duration = time.Minute
|
||||
limiterUpdateDelay time.Duration = time.Second
|
||||
|
||||
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)
|
||||
)
|
||||
|
@ -19,7 +19,7 @@ var (
|
||||
limiterTimeout time.Duration = time.Second / 20
|
||||
limiterMaxTimeout time.Duration = time.Second
|
||||
limiterBurst int = 1
|
||||
limiterUpdateDelay time.Duration = time.Minute
|
||||
limiterUpdateDelay time.Duration = time.Second
|
||||
|
||||
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user