1
0

feat: change rate limiter timeout to 1s

This commit is contained in:
dump_stack() 2023-05-28 17:22:16 +00:00
parent 8e57f7f5ef
commit 5ec6873c57
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 2 additions and 2 deletions

View File

@ -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)
)

View File

@ -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)
)