From ee137c014631fa87d94e5d5fbb4970063575b648 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 24 May 2023 08:34:37 -0400 Subject: [PATCH] Fixed pool size auto-calculated. --- src/engine/gameManager/DbManager.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/gameManager/DbManager.java b/src/engine/gameManager/DbManager.java index 9d6feaf0..3b538a8d 100644 --- a/src/engine/gameManager/DbManager.java +++ b/src/engine/gameManager/DbManager.java @@ -307,8 +307,6 @@ public enum DbManager { config.setUsername(ConfigManager.MB_DATABASE_USER.getValue()); config.setPassword(ConfigManager.MB_DATABASE_PASS.getValue()); - config.addDataSourceProperty("minimumIdle", "5"); - config.addDataSourceProperty("idleTimeout", "600000"); config.addDataSourceProperty("maxLifetime", "3600000"); config.addDataSourceProperty("characterEncoding", "utf8"); @@ -323,6 +321,6 @@ public enum DbManager { connectionPool = new HikariDataSource(config); // setup the connection pool - Logger.info("Database pool has " + connectionCount + " max connections"); + Logger.info("Database configured with " + connectionCount + " connections"); } }