mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 11:58:08 +01:00
Migrate deprecated Lettuce method and enum usages
This commit is contained in:
@@ -8,8 +8,6 @@ package org.whispersystems.textsecuregcm.providers;
|
||||
import com.codahale.metrics.health.HealthCheck;
|
||||
import org.whispersystems.textsecuregcm.redis.FaultTolerantRedisCluster;
|
||||
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public class RedisClusterHealthCheck extends HealthCheck {
|
||||
|
||||
private final FaultTolerantRedisCluster redisCluster;
|
||||
@@ -20,7 +18,7 @@ public class RedisClusterHealthCheck extends HealthCheck {
|
||||
|
||||
@Override
|
||||
protected Result check() {
|
||||
redisCluster.withCluster(connection -> connection.sync().masters().commands().ping());
|
||||
redisCluster.withCluster(connection -> connection.sync().upstream().commands().ping());
|
||||
return Result.healthy();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user