From 5270f2438c7c3aaa62dd92305c8d5c7861ab1d11 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 17 May 2023 05:02:57 +0000 Subject: [PATCH] feat: set default limiter timeout to 100ms --- 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 c009f13..7f55bcb 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 + limiterTimeout time.Duration = time.Second / 10 limiterBurst int = 3 Limiter = rate.NewLimiter(rate.Every(limiterTimeout), limiterBurst)