Class: Datadog::Core::UnlimitedLimiter
- Inherits:
-
RateLimiter
- Object
- RateLimiter
- Datadog::Core::UnlimitedLimiter
- Defined in:
- lib/datadog/core/rate_limiter.rb
Overview
RateLimiter that accepts all resources, with no limits.
Instance Method Summary collapse
-
#allow?(_ = 1) ⇒ Boolean
Always
true. -
#effective_rate ⇒ Float
Always 100%.
Instance Method Details
#allow?(_ = 1) ⇒ Boolean
Returns always true.
183 184 185 |
# File 'lib/datadog/core/rate_limiter.rb', line 183 def allow?(_ = 1) true end |
#effective_rate ⇒ Float
Returns always 100%.
188 189 190 |
# File 'lib/datadog/core/rate_limiter.rb', line 188 def effective_rate 1.0 end |