From 28156bbaef3407be61bd3b5c53f2f7a568752bbd Mon Sep 17 00:00:00 2001 From: Artem Vysochyn Date: Sun, 3 Sep 2023 10:58:28 +0300 Subject: [PATCH] Minor update --- .../src/main/java/io/scalecube/cluster/ClusterConfig.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cluster-api/src/main/java/io/scalecube/cluster/ClusterConfig.java b/cluster-api/src/main/java/io/scalecube/cluster/ClusterConfig.java index 5cbd641c..39feb4b5 100644 --- a/cluster-api/src/main/java/io/scalecube/cluster/ClusterConfig.java +++ b/cluster-api/src/main/java/io/scalecube/cluster/ClusterConfig.java @@ -5,7 +5,6 @@ import io.scalecube.cluster.membership.MembershipConfig; import io.scalecube.cluster.metadata.MetadataCodec; import io.scalecube.cluster.transport.api.TransportConfig; -import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Optional; @@ -170,7 +169,7 @@ public ClusterConfig externalHosts(String... externalHosts) { */ public ClusterConfig externalHosts(List externalHosts) { ClusterConfig c = clone(); - c.externalHosts = new ArrayList<>(externalHosts); + c.externalHosts = externalHosts; return c; }