Skip to content

Commit

Permalink
shorted a line to meet PEP8 in the test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
aluminum-ice committed Dec 30, 2023
1 parent 5b5b340 commit bcf7b8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/token_bucket/limiter.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ def consume(self, key: KeyType, num_tokens: int = 1) -> bool:
return self._storage.consume(key, num_tokens)

def rate(self) -> Union[float, int]:
# Return the token bucket rate, needed for use cases where you dynamically wait based on the remaining tokens
# Return the token bucket rate, needed for use cases where
# you dynamically wait based on the remaining tokens
return self._rate

def capacity(self) -> int:
# Return the token bucket rate, needed for use cases where you dynamically wait based on the remaining tokens
# Return the token bucket rate, needed for use cases where
# you dynamically wait based on the remaining tokens
return self._capacity

0 comments on commit bcf7b8b

Please sign in to comment.