func newRateLimiter() *rateLimiter {
	decayFactor := 9.0 / 8.0
	return &rateLimiter{
		stats: info.RateLimiterStats{
			TargetRate: 1,
		},
		decayPeriod: 5 * time.Second,
		decayFactor: decayFactor,
		exit:        make(chan struct{}),
	}
}
// newRateLimiter returns an initialized rate limiter.
newRateLimiter returns an initialized rate limiter.
// newRateLimiter returns an initialized rate limiter .
func newRateLimiter() *rateLimiter {
	decayFactor := 9.0 / 8.0
	return &rateLimiter{
		stats: info.RateLimiterStats{
			TargetRate: 1,
		},
		decayPeriod: 5 * time.Second,
		decayFactor: decayFactor,
		exit:        make(chan struct{}),
	}
}
func newRateLimiter ( ) * rateLimiter { decayFactor := 9.0 / 8.0 return & rateLimiter { stats : info . RateLimiterStats { TargetRate : 1 , } , decayPeriod : 5 * time . Second , decayFactor : decayFactor , exit : make ( chan struct { } ) , } }
newRateLimiter returns an initialized rate limiter.
newRateLimiter returns an initialized rate limiter .