Skip to content

Commit

Permalink
perf: 🧵 use thread pool to init EventHub
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Oct 2, 2024
1 parent 34d59a1 commit aabd8b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/zhanganzhi/chathub/ChatHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void onInitialize(ProxyInitializeEvent event) {
);

// init event hub
new Thread(() -> eventHub.start(), "chathub-event-hub-start-event").start();
threadPoolExecutor.submit(() -> eventHub.start());
}

@Subscribe
Expand Down

0 comments on commit aabd8b9

Please sign in to comment.