mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-29 12:07:54 +01:00
Actually use settings
This commit is contained in:
parent
7e961fc2a3
commit
b3cd5486d6
@ -64,7 +64,6 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.MISC));
|
poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.MISC));
|
||||||
poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.MISC));
|
poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.MISC));
|
||||||
poolProperties.setInitialSize(0);
|
poolProperties.setInitialSize(0);
|
||||||
poolProperties.setMaxIdle(400);
|
|
||||||
poolProperties.setMaxWait(-1);
|
poolProperties.setMaxWait(-1);
|
||||||
poolProperties.setRemoveAbandoned(true);
|
poolProperties.setRemoveAbandoned(true);
|
||||||
poolProperties.setRemoveAbandonedTimeout(60);
|
poolProperties.setRemoveAbandonedTimeout(60);
|
||||||
@ -80,7 +79,6 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
poolProperties.setInitialSize(0);
|
poolProperties.setInitialSize(0);
|
||||||
poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.SAVE));
|
poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.SAVE));
|
||||||
poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.SAVE));
|
poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.SAVE));
|
||||||
poolProperties.setMaxIdle(400);
|
|
||||||
poolProperties.setMaxWait(-1);
|
poolProperties.setMaxWait(-1);
|
||||||
poolProperties.setRemoveAbandoned(true);
|
poolProperties.setRemoveAbandoned(true);
|
||||||
poolProperties.setRemoveAbandonedTimeout(60);
|
poolProperties.setRemoveAbandonedTimeout(60);
|
||||||
@ -96,7 +94,6 @@ public final class SQLDatabaseManager implements DatabaseManager {
|
|||||||
poolProperties.setInitialSize(0);
|
poolProperties.setInitialSize(0);
|
||||||
poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.LOAD));
|
poolProperties.setMaxIdle(Config.getInstance().getMySQLMaxPoolSize(PoolIdentifier.LOAD));
|
||||||
poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.LOAD));
|
poolProperties.setMaxActive(Config.getInstance().getMySQLMaxConnections(PoolIdentifier.LOAD));
|
||||||
poolProperties.setMaxIdle(400);
|
|
||||||
poolProperties.setMaxWait(-1);
|
poolProperties.setMaxWait(-1);
|
||||||
poolProperties.setRemoveAbandoned(true);
|
poolProperties.setRemoveAbandoned(true);
|
||||||
poolProperties.setRemoveAbandonedTimeout(60);
|
poolProperties.setRemoveAbandonedTimeout(60);
|
||||||
|
Loading…
Reference in New Issue
Block a user