forked from j62/ctbrec
Reduce event bus thread pool size from 10 to 2
This commit is contained in:
parent
59697c600f
commit
764119e20a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue