Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Jan 18, 2024
1 parent 250dbdf commit ed7c641
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pecorino/leaky_bucket.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ def to_i
# to derive locking keys, so that operations on a particular bucket
# are always serialized.
# @param leak_rate[Float] the leak rate of the bucket, in tokens per second.
# Either `leak_rate` or `over_time` can be used, but not both.
# Either `leak_rate` or `over_time` can be used, but not both.
# @param over_time[#to_f] over how many seconds the bucket will leak out to 0 tokens.
# The value is assumed to be the number of seconds
# - or a duration which returns the number of seconds from `to_f`.
# Either `leak_rate` or `over_time` can be used, but not both.
# Either `leak_rate` or `over_time` can be used, but not both.
# @param capacity[Numeric] how many tokens is the bucket capped at.
# Filling up the bucket using `fillup()` will add to that number, but
# the bucket contents will then be capped at this value. So with
Expand Down

0 comments on commit ed7c641

Please sign in to comment.