Skip to content

Commit

Permalink
playaround
Browse files Browse the repository at this point in the history
  • Loading branch information
Xin committed Oct 5, 2023
1 parent 4783761 commit c8cefc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ private Future<RedisAPI> connectToRedis() {
.setPoolRecycleTimeout(redisPoolRecycleTimeoutMs)
.setMaxWaitingHandlers(redisMaxPipelineWaitingSize);
if (configuration.isRedisClustered()) {
redisOptions.setType(RedisClientType.CLUSTER);
redisOptions.setType(RedisClientType.REPLICATION);
redisOptions.addConnectionString(createConnectString());
} else {
redisOptions.setConnectionString(createConnectString());
Expand All @@ -107,7 +107,7 @@ private Future<RedisAPI> connectToRedis() {
redis.connect().onSuccess(conn -> {
log.info("Successfully connected to redis");
client = conn;
client.close();
// client.close();

// make sure the client is reconnected on error
// eg, the underlying TCP connection is closed but the client side doesn't know it yet
Expand Down

0 comments on commit c8cefc0

Please sign in to comment.