From 8752f68e297409c5b3e725115269894d38349fe2 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Mon, 25 Jan 2021 17:44:30 +0300 Subject: [PATCH] Fix default RefillRate --- throttle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/throttle.go b/throttle.go index eaeb1b7..9a960c1 100644 --- a/throttle.go +++ b/throttle.go @@ -22,7 +22,7 @@ func NewThrottle(ctx context.Context, cfg *Config) *Throttle { cfg = &Config{ NumTokens: 0, Delay: 1 * time.Millisecond, - RefillRate: 0.001, + RefillRate: 1000000, DefaultCost: 1.000, Capacity: 1.000, }