Skip to content

Commit

Permalink
perf: ⚡️ use new thread to init eventhub
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Dec 22, 2023
1 parent 4d68243 commit 74714fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/zhanganzhi/chathub/ChatHub.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public void onInitialize(ProxyInitializeEvent event) {
new Command(this)
);

eventHub.start();
// init event hub
new Thread(() -> eventHub.start()).start();
}

@Subscribe
Expand Down

0 comments on commit 74714fc

Please sign in to comment.