mirror of
https://github.com/ChronosX88/go-throttle.git
synced 2024-11-10 16:31:00 +00:00
Fix default RefillRate
This commit is contained in:
parent
ab73418b18
commit
8752f68e29
@ -22,7 +22,7 @@ func NewThrottle(ctx context.Context, cfg *Config) *Throttle {
|
|||||||
cfg = &Config{
|
cfg = &Config{
|
||||||
NumTokens: 0,
|
NumTokens: 0,
|
||||||
Delay: 1 * time.Millisecond,
|
Delay: 1 * time.Millisecond,
|
||||||
RefillRate: 0.001,
|
RefillRate: 1000000,
|
||||||
DefaultCost: 1.000,
|
DefaultCost: 1.000,
|
||||||
Capacity: 1.000,
|
Capacity: 1.000,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user