changed redis port to int

master
alex 2022-04-10 20:44:04 +02:00
parent 3e329d99cd
commit 346bf011bd
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ public class ConfigHandler {
private String mongodbPassword; private String mongodbPassword;
private String redisHost; private String redisHost;
private String redisPort; private int redisPort;
public void load() throws IOException, InvalidConfigurationException { public void load() throws IOException, InvalidConfigurationException {
File file = new File(defaultConfigPath, "kraSettings.yaml"); File file = new File(defaultConfigPath, "kraSettings.yaml");
@ -52,6 +52,6 @@ public class ConfigHandler {
mongodbPassword = fileConfiguration.getString("mongodb.password"); mongodbPassword = fileConfiguration.getString("mongodb.password");
redisHost = fileConfiguration.getString("redis.host"); redisHost = fileConfiguration.getString("redis.host");
redisPort = fileConfiguration.getString("redis.port"); redisPort = fileConfiguration.getInt("redis.port");
} }
} }