Skip to content

Commit

Permalink
Replace non-ascii character (#2107)
Browse files Browse the repository at this point in the history
Details about this PR can be found in #2062 .
  • Loading branch information
sazzad16 committed Nov 26, 2019
1 parent 6ff843f commit 832091e
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/main/java/redis/clients/jedis/JedisSentinelPool.java
Expand Up @@ -286,15 +286,13 @@ public void run() {
if (!running.get()) {
break;
}

/*
* Added code for active refresh
*/
List<String> masterAddr = j.sentinelGetMasterAddrByName(masterName);

// code for active refresh
List<String> masterAddr = j.sentinelGetMasterAddrByName(masterName);
if (masterAddr == null || masterAddr.size() != 2) {
log.warn("Can not get master addr, master name: {}. Sentinel: {}{}.",masterName,host,port);
}else{
initPool(toHostAndPort(masterAddr));
log.warn("Can not get master addr, master name: {}. Sentinel: {}:{}.", masterName, host, port);
} else {
initPool(toHostAndPort(masterAddr));
}

j.subscribe(new JedisPubSub() {
Expand Down

0 comments on commit 832091e

Please sign in to comment.