forked from Limework/RediSkript
so I found that this threadpool was actually needed, oops
due to it not having threadpool, froze my server at one point
This commit is contained in:
@@ -52,7 +52,7 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
|
||||
config.getInt("Redis.TimeOut"),
|
||||
config.getString("Redis.Password"),
|
||||
config.getBoolean("Redis.useTLS"));
|
||||
RedisService = Executors.newSingleThreadExecutor();
|
||||
RedisService = Executors.newFixedThreadPool(3);
|
||||
try {
|
||||
this.subscribeJedis = this.jedisPool.getResource();
|
||||
} catch (Exception ignored) {
|
||||
@@ -163,4 +163,6 @@ public class RedisManager extends BinaryJedisPubSub implements Runnable {
|
||||
public Encryption getEncryption() {
|
||||
return encryption;
|
||||
}
|
||||
|
||||
public ExecutorService getRedisService() { return RedisService; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user