From 655f5957ca932f04e750b044f688bc1768831bf0 Mon Sep 17 00:00:00 2001 From: zyxxoo <1318247699@qq.com> Date: Mon, 25 Apr 2022 15:12:21 +0800 Subject: [PATCH] improve code --- .../backend/store/cassandra/CassandraSessionPool.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java b/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java index 9857ccebf9..302cad6350 100644 --- a/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java +++ b/hugegraph-cassandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java @@ -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);