mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-04-30 06:37:36 +00:00
[Change] BotEventHandler 调整事件处理线程池的线程数;
This commit is contained in:
parent
04960889b4
commit
bef6a684b9
@ -52,8 +52,8 @@ public class BotEventHandler implements EventHandler {
|
||||
*/
|
||||
public final static EventExecutor executor = new EventExecutor(new TimeLimitThreadPoolExecutor(
|
||||
60 * 1000,
|
||||
(int) Math.ceil(Runtime.getRuntime().availableProcessors() / 2F),
|
||||
Runtime.getRuntime().availableProcessors(),
|
||||
Math.max(Runtime.getRuntime().availableProcessors() * 2, 16),
|
||||
30L,
|
||||
TimeUnit.SECONDS,
|
||||
new LinkedBlockingQueue<>(1536),
|
||||
|
Loading…
Reference in New Issue
Block a user