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

Fixed Typos caused JedisPooled to be JedisCluster withen the abstract api

This commit is contained in:
mohammed jasem alaajel 2022-11-01 09:59:08 +04:00
parent 21f543581c
commit 0f5d5b2440
No known key found for this signature in database

View File

@ -23,6 +23,7 @@ import org.checkerframework.checker.nullness.qual.NonNull;
import redis.clients.jedis.Jedis; import redis.clients.jedis.Jedis;
import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisCluster;
import redis.clients.jedis.JedisPool; import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPooled;
import java.net.InetAddress; import java.net.InetAddress;
import java.util.*; import java.util.*;
@ -433,9 +434,9 @@ public abstract class AbstractRedisBungeeAPI {
* @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#SINGLE} * @throws IllegalStateException if the {@link #getMode()} is not equal to {@link RedisBungeeMode#SINGLE}
* @since 0.8.0 * @since 0.8.0
*/ */
public JedisCluster requestJedisPooled() { public JedisPooled requestJedisPooled() {
if (getMode() == RedisBungeeMode.SINGLE) { if (getMode() == RedisBungeeMode.SINGLE) {
return ((JedisClusterSummoner) this.plugin.getSummoner()).obtainResource(); return ((JedisPooledSummoner) this.plugin.getSummoner()).obtainResource();
} else { } else {
throw new IllegalStateException("Mode is not " + RedisBungeeMode.SINGLE); throw new IllegalStateException("Mode is not " + RedisBungeeMode.SINGLE);
} }