Skip to content

Commit b105cac

Browse files
authored
Update ratelimit.py
1 parent 05e64eb commit b105cac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎app/infra/ratelimit.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ class RateLimiter(Protocol):
3030

3131
def check(self, key: str, limit: int, window: float) -> tuple[bool, float]:
3232
"""Record an attempt; return ``(allowed, retry_after_seconds)``."""
33+
...
3334

3435
def reset(self) -> None:
3536
"""Forget all counters (used to isolate tests)."""
37+
...
3638

3739

3840
class SlidingWindowLimiter:

0 commit comments

Comments
 (0)