fix: Fix number of concurrent requests in RequestLimiter (#3705)

This commit is contained in:
bogdankostic 2022-12-21 11:40:33 +01:00 committed by GitHub
parent 82ad408a74
commit 12c264603e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ from pydantic import BaseModel
class RequestLimiter:
def __init__(self, limit):
self.semaphore = Semaphore(limit - 1)
self.semaphore = Semaphore(limit)
@contextmanager
def run(self):