From ed7c641a4c488e37465b82dace671f6b82c6eb74 Mon Sep 17 00:00:00 2001 From: Julik Tarkhanov Date: Thu, 18 Jan 2024 12:47:35 +0000 Subject: [PATCH] Fmt --- lib/pecorino/leaky_bucket.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pecorino/leaky_bucket.rb b/lib/pecorino/leaky_bucket.rb index 367da41..1bb172a 100644 --- a/lib/pecorino/leaky_bucket.rb +++ b/lib/pecorino/leaky_bucket.rb @@ -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