mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-25 12:58:04 +01:00
Track voice support on TS server.
// FREEBIE
This commit is contained in:
@@ -31,9 +31,7 @@ public class RedisHealthCheck extends HealthCheck {
|
||||
|
||||
@Override
|
||||
protected Result check() throws Exception {
|
||||
Jedis client = clientPool.getResource();
|
||||
|
||||
try {
|
||||
try (Jedis client = clientPool.getResource()) {
|
||||
client.set("HEALTH", "test");
|
||||
|
||||
if (!"test".equals(client.get("HEALTH"))) {
|
||||
@@ -41,8 +39,6 @@ public class RedisHealthCheck extends HealthCheck {
|
||||
}
|
||||
|
||||
return Result.healthy();
|
||||
} finally {
|
||||
clientPool.returnResource(client);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user