Skip to content

Commit

Permalink
rate limiter proposed changes
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Aug 27, 2024
1 parent 3c893bf commit 57a7bac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/tracing/sampling/rate_limiter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def initialize(rate, max_tokens = rate)
# the tokens from the bucket.
#
# @return [Boolean] +true+ if message conforms with current bucket limit
def allow?(size)
def allow?(size = 1)
allowed = should_allow?(size)
update_rate_counts(allowed)
allowed
Expand Down

0 comments on commit 57a7bac

Please sign in to comment.