mirror of
https://github.com/ChronosX88/go-throttle.git
synced 2024-11-26 06:02:18 +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 {
|
if cfg == nil {
|
||||||
cfg = &Config{
|
cfg = &Config{
|
||||||
NumTokens: 0,
|
NumTokens: 0,
|
||||||
Delay: 0.001,
|
Delay: 1 * time.Millisecond,
|
||||||
RefillRate: 0.001,
|
RefillRate: 0.001,
|
||||||
DefaultCost: 1.000,
|
DefaultCost: 1.000,
|
||||||
Capacity: 1.000,
|
Capacity: 1.000,
|
||||||
|
Loading…
Reference in New Issue
Block a user