feat: disable burst for mr/metasnap api
This commit is contained in:
parent
9df0880e3e
commit
c0914820c0
@ -20,8 +20,8 @@ const apiURL = "http://metasnap.debian.net/cgi-bin/api?"
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
limiterTimeout time.Duration = time.Second / 20
|
limiterTimeout time.Duration = time.Second / 20
|
||||||
limiterMaxTimeout time.Duration = time.Second * 3
|
limiterMaxTimeout time.Duration = time.Second
|
||||||
limiterBurst int = 3
|
limiterBurst int = 1
|
||||||
limiterUpdateDelay time.Duration = time.Second * 10
|
limiterUpdateDelay time.Duration = time.Second * 10
|
||||||
|
|
||||||
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)
|
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)
|
||||||
|
@ -17,8 +17,8 @@ const apiURL = "https://snapshot.debian.org/mr"
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
limiterTimeout time.Duration = time.Second / 20
|
limiterTimeout time.Duration = time.Second / 20
|
||||||
limiterMaxTimeout time.Duration = time.Second * 3
|
limiterMaxTimeout time.Duration = time.Second
|
||||||
limiterBurst int = 3
|
limiterBurst int = 1
|
||||||
limiterUpdateDelay time.Duration = time.Second * 10
|
limiterUpdateDelay time.Duration = time.Second * 10
|
||||||
|
|
||||||
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)
|
Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)
|
||||||
|
Loading…
Reference in New Issue
Block a user