// newRateLimiter creates an instance of the rateLimiter.
newRateLimiter creates an instance of the rateLimiter.
// newRateLimiter creates an instance of the rateLimiter .
func newRateLimiter(rps, burst int, ttl time.Duration) *rateLimiter {
	return &rateLimiter{
		visitors: make(map[string]*visitor),
		limit:    rate.Limit(rps),
		burst:    burst,
		ttl:      ttl,
	}
}
func newRateLimiter ( rps , burst int , ttl time . Duration ) * rateLimiter { return & rateLimiter { visitors : make ( map [ string ] * visitor ) , limit : rate . Limit ( rps ) , burst : burst , ttl : ttl , } }
newRateLimiter creates an instance of the rateLimiter.
newRateLimiter creates an instance of the rateLimiter .