1
0

feat: set default limiter timeout to 50ms

This commit is contained in:
dump_stack() 2023-05-17 05:05:49 +00:00
parent 008ce1cdbf
commit 6e92010dc0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -16,7 +16,7 @@ import (
const apiURL = "https://snapshot.debian.org/mr" const apiURL = "https://snapshot.debian.org/mr"
var ( var (
limiterTimeout time.Duration = time.Second / 10 limiterTimeout time.Duration = time.Second / 20
limiterBurst int = 3 limiterBurst int = 3
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst) Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)