This commit is contained in:
retoor 2025-09-07 04:22:48 +02:00
parent 206c5e5114
commit 92f5895450

View File

@ -52,7 +52,7 @@ class RPC:
self.ws = ws
self.current_call_id = None
self.queue = asyncio.Queue()
self.semaphore = asyncio.Semaphore(3)
self.semaphore = asyncio.Semaphore(200)
def __getattr__(self, name):
async def method(*args, **kwargs):
@ -78,8 +78,8 @@ class RPC:
if no_response:
return True
return await poller()
with self.semaphore:
return await poller()
return method