forked from Limework/skript-db
Make thread pool configurable
This commit is contained in:
@@ -51,7 +51,7 @@ public class EffExecuteStatement extends Delay {
|
||||
static String lastError;
|
||||
|
||||
private static final ExecutorService threadPool =
|
||||
Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());
|
||||
Executors.newFixedThreadPool(SkriptDB.getInstance().getConfig().getInt("thread-pool-size"));
|
||||
|
||||
private Expression<String> query;
|
||||
private Expression<HikariDataSource> dataSource;
|
||||
|
||||
Reference in New Issue
Block a user