This commit is contained in:
yasirarism 2023-09-11 21:59:00 +07:00 committed by GitHub
parent 1fc5f81921
commit 78eb1a28e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,8 +32,7 @@ class RateLimiter:
self.limiter = Limiter( self.limiter = Limiter(
self.minute_rate, self.minute_rate,
self.hourly_rate, self.hourly_rate,
self.daily_rate, self.daily_rate
bucket_class=InMemoryBucket,
) )
async def acquire(self, userid: Union[int, str]) -> bool: async def acquire(self, userid: Union[int, str]) -> bool: