Skip to content

Commit

Permalink
chore: use existing virtual thread factory for event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Nov 28, 2024
1 parent 5bf0bfb commit f0007be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/main/java/org/allaymc/server/AllayServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private AllayServer() {
this.playerStorage = Server.SETTINGS.storageSettings().savePlayerData() ? new AllayNBTFilePlayerStorage(Path.of("players")) : AllayEmptyPlayerStorage.INSTANCE;
this.computeThreadPool = createComputeThreadPool();
this.virtualThreadPool = Executors.newVirtualThreadPerTaskExecutor();
this.eventBus = new AllayEventBus(Executors.newVirtualThreadPerTaskExecutor());
this.eventBus = new AllayEventBus(virtualThreadPool);
this.scoreboardService = new ScoreboardService(this, new JsonScoreboardStorage(Path.of("command_data/scoreboards.json")));
this.banInfo = ConfigManager.create(BanInfo.class, Utils.createConfigInitializer(Path.of(BAN_INFO_FILE_NAME)));
this.whitelist = ConfigManager.create(Whitelist.class, Utils.createConfigInitializer(Path.of(WHITELIST_FILE_NAME)));
Expand Down

0 comments on commit f0007be

Please sign in to comment.