feat: set default limiter timeout to 50ms
This commit is contained in:
parent
008ce1cdbf
commit
6e92010dc0
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user