2
0
mirror of https://github.com/proxiodev/RedisBungee.git synced 2024-11-22 20:28:00 +00:00

check connection in JedisClusterSummoner too

This commit is contained in:
mohammed jasem alaajel 2022-07-17 05:40:32 +04:00
parent b0ab5e3cb4
commit f1f74b6456

View File

@ -10,6 +10,9 @@ public class ClusterJedisSummoner implements Summoner<JedisCluster> {
public ClusterJedisSummoner(JedisCluster jedisCluster) { public ClusterJedisSummoner(JedisCluster jedisCluster) {
this.jedisCluster = jedisCluster; this.jedisCluster = jedisCluster;
// test the connection
jedisCluster.set("random_data", "0");
jedisCluster.del("random_data");
} }
@Override @Override