From dee1df211776b9381f3a10a898e4b1442c35d58e Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Mon, 25 Jan 2021 15:46:12 +0300 Subject: [PATCH] Fix default delay duration --- throttle.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/throttle.go b/throttle.go index f0c5cbb..0e31938 100644 --- a/throttle.go +++ b/throttle.go @@ -21,7 +21,7 @@ func NewThrottle(ctx context.Context, cfg *Config) *Throttle { if cfg == nil { cfg = &Config{ NumTokens: 0, - Delay: 0.001, + Delay: 1 * time.Millisecond, RefillRate: 0.001, DefaultCost: 1.000, Capacity: 1.000,