Skip to content

Commit

Permalink
Merge pull request #42 from larryfox/patch-1
Browse files Browse the repository at this point in the history
fix string formatting of remaining_block_time
  • Loading branch information
idanci authored Jan 30, 2023
2 parents 66b8f33 + 6d21197 commit d6ab8d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/prorate/throttle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def throttle!(n_tokens: 1)

if bucket_level == -1
@logger.warn do
"Throttle %s exceeded limit of %d in %d seconds and is blocked for the next %d seconds" % [@name, @limit, @period, remaining_block_time]
"Throttle %s exceeded limit of %d in %d seconds and is blocked for the next %s seconds" % [@name, @limit, @period, remaining_block_time]
end
raise ::Prorate::Throttled.new(@name, remaining_block_time)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/prorate/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Prorate
VERSION = "0.7.2"
VERSION = "0.7.3"
end

0 comments on commit d6ab8d7

Please sign in to comment.