mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2026-04-07 15:40:26 +00:00
Set default maximum Redis connections to 8.
This commit is contained in:
@@ -388,7 +388,7 @@ public final class RedisBungee extends Plugin {
|
||||
@Override
|
||||
public JedisPool call() throws Exception {
|
||||
JedisPoolConfig config = new JedisPoolConfig();
|
||||
config.setMaxTotal(configuration.getInt("max-redis-connections", -1));
|
||||
config.setMaxTotal(configuration.getInt("max-redis-connections", 8));
|
||||
config.setJmxEnabled(false);
|
||||
return new JedisPool(config, redisServer, redisPort, 0, finalRedisPassword);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user