Update.
This commit is contained in:
		
							parent
							
								
									4e72fbf84b
								
							
						
					
					
						commit
						161ff392d7
					
				| @ -24,7 +24,8 @@ class BaseMapper: | ||||
|         return asyncio.get_event_loop() | ||||
| 
 | ||||
|     async def run_in_executor(self, func, *args, **kwargs): | ||||
|         return await self.loop.run_in_executor(None, lambda: func(*args, **kwargs)) | ||||
|         return func(*args, **kwargs) | ||||
|         #return await self.loop.run_in_executor(None, lambda: func(*args, **kwargs)) | ||||
| 
 | ||||
|     async def new(self): | ||||
|         return self.model_class(mapper=self, app=self.app) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user