feat: cleanup

This commit is contained in:
pablo 2025-07-03 12:12:58 +03:00
parent 0f3dfc82c6
commit ac5559fb5f

View File

@ -110,7 +110,7 @@ proc update(bucket: TokenBucket, currentTime: Moment) =
updateStrict(bucket, currentTime)
## Returns the available capacity ratio of the bucket.
## It is a float number between 0.0 (empty) and 1.0 (full).
## as a float number between 0.0 (empty) and 1.0 (full).
proc getAvailableCapacityRatio*(bucket: TokenBucket, currentTime: Moment): float =
if periodElapsed(bucket, currentTime):
return 1.0