From 6e92010dc01c94dc140e2405a8b7b4460f9ef1ce Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 17 May 2023 05:05:49 +0000 Subject: [PATCH] feat: set default limiter timeout to 50ms --- distro/debian/snapshot/mr/mr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/debian/snapshot/mr/mr.go b/distro/debian/snapshot/mr/mr.go index 7f55bcb..64c6068 100644 --- a/distro/debian/snapshot/mr/mr.go +++ b/distro/debian/snapshot/mr/mr.go @@ -16,7 +16,7 @@ import ( const apiURL = "https://snapshot.debian.org/mr" var ( - limiterTimeout time.Duration = time.Second / 10 + limiterTimeout time.Duration = time.Second / 20 limiterBurst int = 3 Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)