mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
fix import?
This commit is contained in:
parent
965bc2bf5f
commit
2e06db8321
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ from pyrate_limiter import (
|
|||
BucketFullException,
|
||||
Duration,
|
||||
Limiter,
|
||||
MemoryListBucket,
|
||||
InMemoryBucket,
|
||||
RequestRate,
|
||||
)
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class RateLimiter:
|
|||
self.minute_rate,
|
||||
self.hourly_rate,
|
||||
self.daily_rate,
|
||||
bucket_class=MemoryListBucket,
|
||||
bucket_class=InMemoryBucket,
|
||||
)
|
||||
|
||||
async def acquire(self, userid: Union[int, str]) -> bool:
|
||||
|
|
|
|||
Loading…
Reference in a new issue