fix import?

This commit is contained in:
yasirarism 2023-09-11 21:56:10 +07:00 committed by GitHub
parent 965bc2bf5f
commit 2e06db8321
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: