forked from j62/ctbrec
1
0
Fork 0

Reduce event bus thread pool size from 10 to 2

This commit is contained in:
0xboobface 2020-07-12 12:37:47 +02:00
parent 59697c600f
commit 764119e20a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ public class EventBusHolder {
private EventBusHolder() {}
public static final EventBus BUS = new AsyncEventBus(Executors.newFixedThreadPool(10, r -> {
public static final EventBus BUS = new AsyncEventBus(Executors.newFixedThreadPool(2, r -> {
Thread t = new Thread(r);
t.setName("EventBus-" + UUID.randomUUID().toString().substring(0, 8));
t.setPriority(Thread.NORM_PRIORITY - 1);