mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 17: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,
|
BucketFullException,
|
||||||
Duration,
|
Duration,
|
||||||
Limiter,
|
Limiter,
|
||||||
MemoryListBucket,
|
InMemoryBucket,
|
||||||
RequestRate,
|
RequestRate,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@ class RateLimiter:
|
||||||
self.minute_rate,
|
self.minute_rate,
|
||||||
self.hourly_rate,
|
self.hourly_rate,
|
||||||
self.daily_rate,
|
self.daily_rate,
|
||||||
bucket_class=MemoryListBucket,
|
bucket_class=InMemoryBucket,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def acquire(self, userid: Union[int, str]) -> bool:
|
async def acquire(self, userid: Union[int, str]) -> bool:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue