mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-03 22:43:09 +00:00
feat: cleanup
This commit is contained in:
parent
a5ff6a1fbd
commit
0f3dfc82c6
@ -110,7 +110,6 @@ proc update(bucket: TokenBucket, currentTime: Moment) =
|
||||
updateStrict(bucket, currentTime)
|
||||
|
||||
## Returns the available capacity ratio of the bucket.
|
||||
## This is a ratio of the bucket capacity that is currently available.
|
||||
## It is a float number between 0.0 (empty) and 1.0 (full).
|
||||
proc getAvailableCapacityRatio*(bucket: TokenBucket, currentTime: Moment): float =
|
||||
if periodElapsed(bucket, currentTime):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user