Oops
This commit is contained in:
		
							parent
							
								
									206c5e5114
								
							
						
					
					
						commit
						92f5895450
					
				| @ -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 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user