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