mirror of
https://github.com/ChronosX88/go-throttle.git
synced 2024-12-30 19:31:47 +00:00
Fix default delay duration
This commit is contained in:
parent
03d2fcc823
commit
dee1df2117
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user