Commit a7e88295 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish

parent 5ad4de18
...@@ -57,8 +57,7 @@ public class CassandraHealthIndicator extends AbstractHealthIndicator { ...@@ -57,8 +57,7 @@ public class CassandraHealthIndicator extends AbstractHealthIndicator {
@Override @Override
protected void doHealthCheck(Health.Builder builder) throws Exception { protected void doHealthCheck(Health.Builder builder) throws Exception {
SimpleStatement select = SimpleStatement.newInstance("SELECT release_version FROM system.local"); ResultSet results = this.cassandraOperations.getCqlOperations().queryForResultSet(SELECT);
ResultSet results = this.cassandraOperations.getCqlOperations().queryForResultSet(select);
if (results.isFullyFetched()) { if (results.isFullyFetched()) {
builder.up(); builder.up();
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment