mirror of
				https://github.com/LamGC/ContentGrabbingJi.git
				synced 2025-10-31 00:26:56 +00:00 
			
		
		
		
	[Fix] BotEventHandler 修复线程池最大线程数与最低线程数错误, 导致无法启动应用的问题;
This commit is contained in:
		| @ -46,11 +46,11 @@ public class BotEventHandler implements EventHandler { | ||||
|      * 消息事件执行器 | ||||
|      */ | ||||
|     private final static EventExecutor executor = new EventExecutor(new TimeLimitThreadPoolExecutor( | ||||
|             180000, // 3min | ||||
|             180000, // 3minThr | ||||
|             Math.max(Runtime.getRuntime().availableProcessors(), 4), | ||||
|             Math.min(Runtime.getRuntime().availableProcessors() * 2, 32), | ||||
|             Math.min(Math.max(Runtime.getRuntime().availableProcessors(), 4), 32), | ||||
|             30L, | ||||
|     TimeUnit.SECONDS, | ||||
|             TimeUnit.SECONDS, | ||||
|             new LinkedBlockingQueue<>(1536), | ||||
|             new ThreadFactoryBuilder() | ||||
|                     .setNameFormat("CommandProcess-%d") | ||||
|  | ||||
		Reference in New Issue
	
	Block a user