feat: change max rate limiter timeout to 2s
This commit is contained in:
parent
5ec6873c57
commit
4db10c66dc
@ -20,7 +20,7 @@ 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
|
limiterMaxTimeout time.Duration = time.Second * 2
|
||||||
limiterBurst int = 1
|
limiterBurst int = 1
|
||||||
limiterUpdateDelay time.Duration = time.Second
|
limiterUpdateDelay time.Duration = time.Second
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@ 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
|
limiterMaxTimeout time.Duration = time.Second * 2
|
||||||
limiterBurst int = 1
|
limiterBurst int = 1
|
||||||
limiterUpdateDelay time.Duration = time.Second
|
limiterUpdateDelay time.Duration = time.Second
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user