mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00:00
Changed the thread pool size to be part of the config.
This commit is contained in:
parent
8ca747fa0b
commit
550d94c4c3
3 changed files with 11 additions and 5 deletions
|
@ -105,12 +105,9 @@ public class GeyserConnector implements Connector {
|
|||
|
||||
instance = this;
|
||||
|
||||
this.generalThreadPool = Executors.newScheduledThreadPool(32); //TODO: Make configurable value
|
||||
this.generalThreadPool = Executors.newScheduledThreadPool(32);
|
||||
this.logger = GeyserLogger.DEFAULT;
|
||||
|
||||
ConsoleCommandReader consoleReader = new ConsoleCommandReader(this);
|
||||
consoleReader.startConsole();
|
||||
|
||||
logger.info("******************************************");
|
||||
logger.info("");
|
||||
logger.info("Loading " + NAME + " vesion " + VERSION);
|
||||
|
@ -126,6 +123,9 @@ public class GeyserConnector implements Connector {
|
|||
shutdown();
|
||||
}
|
||||
|
||||
ConsoleCommandReader consoleReader = new ConsoleCommandReader(this);
|
||||
consoleReader.startConsole();
|
||||
|
||||
logger.setDebug(config.isDebugMode());
|
||||
|
||||
Toolbox.CACHED_PALLETE.array();
|
||||
|
|
|
@ -47,5 +47,8 @@ public class GeyserConfiguration {
|
|||
@JsonProperty("debug-mode")
|
||||
private boolean debugMode;
|
||||
|
||||
@JsonProperty("general-thread-pool")
|
||||
private int generalThreadPool;
|
||||
|
||||
private MetricInfo metrics;
|
||||
}
|
|
@ -46,6 +46,9 @@ max-players: 100
|
|||
# If debug messages should be sent through console
|
||||
debug-mode: false
|
||||
|
||||
# Thread pool size
|
||||
general-thread-pool: 32
|
||||
|
||||
# bStats is a stat tracker that is entirely anonymous and tracks only basic information
|
||||
# about Geyser, such as how many people are online, how many servers are using Geyser,
|
||||
# what OS is being used, etc. You can learn more about bStats here: https://bstats.org/.
|
||||
|
|
Loading…
Reference in a new issue