config changes

jedispool is now disabled by default, some minor config changes
This commit is contained in:
mohammed jasem alaajel 2023-08-31 13:00:19 +04:00
parent a076e2e217
commit 1467ac9fd3
No known key found for this signature in database
3 changed files with 7 additions and 7 deletions

View File

@ -115,7 +115,7 @@ public interface ConfigLoader {
throw new RuntimeException("No redis server specified");
}
JedisPool jedisPool = null;
if (node.getNode("enable-jedis-pool-compatibility").getBoolean(true)) {
if (node.getNode("enable-jedis-pool-compatibility").getBoolean(false)) {
JedisPoolConfig config = new JedisPoolConfig();
config.setMaxTotal(node.getNode("compatibility-max-connections").getInt(3));
config.setBlockWhenExhausted(true);

View File

@ -1,7 +1,7 @@
# RedisBungee configuration file.
# Get Redis from http://redis.io/
# you need Redis so get Redis from http://redis.io/ or install it from your package manager
# The Redis server you use.
# The Redis server you will use.
# these settings are ignored when cluster mode is enabled.
redis-server: 127.0.0.1
redis-port: 6379
@ -48,9 +48,10 @@ proxy-id: "test-1"
# since version 0.8.0 Internally now uses JedisPooled instead of Jedis, JedisPool.
# which will break compatibility with old plugins that uses RedisBungee JedisPool
# so to mitigate this issue, we will instruct RedisBungee to init an JedisPool for compatibility reasons.
# enabled by default
# disabled by default
# ignored when cluster mode is enabled
enable-jedis-pool-compatibility: true
enable-jedis-pool-compatibility: false
# max connections for the compatibility pool
compatibility-max-connections: 3

View File

@ -1,3 +1,2 @@
logged-in-other-location: "§cYou logged in from another location!"
already-logged-in: "§cYou are already logged in!"
error: "§cError has occurred"
already-logged-in: "§cYou are already logged in!"