1
0

feat: disable burst for mr/metasnap api

This commit is contained in:
dump_stack() 2023-05-28 12:31:52 +00:00
parent 9df0880e3e
commit c0914820c0
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
2 changed files with 4 additions and 4 deletions

View File

@ -20,8 +20,8 @@ const apiURL = "http://metasnap.debian.net/cgi-bin/api?"
var (
limiterTimeout time.Duration = time.Second / 20
limiterMaxTimeout time.Duration = time.Second * 3
limiterBurst int = 3
limiterMaxTimeout time.Duration = time.Second
limiterBurst int = 1
limiterUpdateDelay time.Duration = time.Second * 10
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)

View File

@ -17,8 +17,8 @@ const apiURL = "https://snapshot.debian.org/mr"
var (
limiterTimeout time.Duration = time.Second / 20
limiterMaxTimeout time.Duration = time.Second * 3
limiterBurst int = 3
limiterMaxTimeout time.Duration = time.Second
limiterBurst int = 1
limiterUpdateDelay time.Duration = time.Second * 10
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)