mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Remove manual class preloads in MySQLUserManager.Factory
This commit is contained in:
1 file changed
-7
@@ -148,13 +148,6 @@ public final class MySQLUserManager extends DatabaseUserManager {
|
||||
}
|
||||
|
||||
public MySQLUserManager create() {
|
||||
try {
|
||||
Class.forName("org.mariadb.jdbc.Driver");
|
||||
Class.forName("com.mysql.cj.jdbc.Driver"); // Manually loading this might not be necessary
|
||||
} catch (final ClassNotFoundException exception) {
|
||||
throw new RuntimeException("Could not find required class", exception);
|
||||
}
|
||||
|
||||
final HikariConfig hikariConfig = new HikariConfig();
|
||||
hikariConfig.setMaximumPoolSize(20);
|
||||
hikariConfig.setJdbcUrl(this.databaseSettings.url());
|
||||
|
||||
Reference in new issue
Block a user