forked from j62/ctbrec
1
0
Fork 0

Increase thread pool size for event bus to 10

This commit is contained in:
0xboobface 2018-12-09 21:36:30 +01:00
parent 5b936c779d
commit 768507d6e5
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ public class EventBusHolder {
private static final transient Logger LOG = LoggerFactory.getLogger(EventBusHolder.class);
private static Map<String, EventHandler> handlers = new HashMap<>();
public static final EventBus BUS = new AsyncEventBus(Executors.newSingleThreadExecutor());
public static final EventBus BUS = new AsyncEventBus(Executors.newFixedThreadPool(10));
public static void register(EventHandler handler) {
if(handlers.containsKey(handler.getId())) {