Class: Datadog::Core::UnlimitedLimiter

Inherits:
RateLimiter show all
Defined in:
lib/datadog/core/rate_limiter.rb

Overview

RateLimiter that accepts all resources, with no limits.

Instance Method Summary collapse

Instance Method Details

#allow?(_ = 1) ⇒ Boolean

Returns always true.

Returns:

  • (Boolean)

    always true



173
174
175
# File 'lib/datadog/core/rate_limiter.rb', line 173

def allow?(_ = 1)
  true
end

#effective_rateFloat

Returns always 100%.

Returns:

  • (Float)

    always 100%



178
179
180
# File 'lib/datadog/core/rate_limiter.rb', line 178

def effective_rate
  1.0
end