mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-25 14:34:47 +00:00
lower mysql connection timeout - may help with #81
This commit is contained in:
1 file changed
+2
-1
@@ -76,7 +76,8 @@ public class MySQLBacking extends SQLBacking {
|
||||
config.addDataSourceProperty("cacheServerConfiguration", true);
|
||||
config.addDataSourceProperty("elideSetAutoCommits", true);
|
||||
config.addDataSourceProperty("useLocalSessionState", true);
|
||||
config.setLeakDetectionThreshold(5000);
|
||||
config.setConnectionTimeout(10000); // 10 seconds
|
||||
config.setLeakDetectionThreshold(5000); // 5 seconds
|
||||
|
||||
hikari = new HikariDataSource(config);
|
||||
|
||||
|
||||
Reference in new issue
Block a user