Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Apr 25, 2022
1 parent 0866d03 commit 655f595
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public synchronized void open() {
int port = config.get(CassandraOptions.CASSANDRA_PORT);

assert this.cluster == null || this.cluster.isClosed();
/*
* Here is incompatible, java11 glassfish
* metrics use version 4,but cassandra metrics
* use version 3.
*/
Builder builder = Cluster.builder()
.addContactPoints(hosts.split(","))
/*
* Here is incompatible, java11 glassfish
* metrics use version 4,but cassandra metrics
* use version 3.
*/
.withoutMetrics()
.withPort(port);

Expand Down

0 comments on commit 655f595

Please sign in to comment.