pkg/logging/ratelimit.go
func RateLimit(next log.Logger, limit rate.Limit) log.Logger {
	return &ratelimiter{
		limiter: rate.NewLimiter(limit, int(limit)),
		next:    next,
	}
}
func RateLimit(next log.Logger, limit rate.Limit) log.Logger {
	return &ratelimiter{
		limiter: rate.NewLimiter(limit, int(limit)),
		next:    next,
	}
}
// RateLimit write to a logger.