Skip to content

Commit

Permalink
Minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-v committed Sep 3, 2023
1 parent ccbe0ed commit 28156bb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -170,7 +169,7 @@ public ClusterConfig externalHosts(String... externalHosts) {
*/
public ClusterConfig externalHosts(List<String> externalHosts) {
ClusterConfig c = clone();
c.externalHosts = new ArrayList<>(externalHosts);
c.externalHosts = externalHosts;
return c;
}

Expand Down

0 comments on commit 28156bb

Please sign in to comment.