diff options
author | Morten Tokle <mortent@verizonmedia.com> | 2021-11-11 14:32:41 +0100 |
---|---|---|
committer | Morten Tokle <mortent@verizonmedia.com> | 2021-11-16 14:53:29 +0100 |
commit | 1f7022d4f8d6fd78e74b9d12899f158d06a58ab6 (patch) | |
tree | d455d0fe194cc3c3a96487892d0d557d28ad4527 /config-model-api | |
parent | 625434397bb349ba02469afaa6e9af017f6c2d00 (diff) |
Use weight=1 if unset
Diffstat (limited to 'config-model-api')
-rw-r--r-- | config-model-api/src/main/java/com/yahoo/config/model/api/ApplicationClusterEndpoint.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config-model-api/src/main/java/com/yahoo/config/model/api/ApplicationClusterEndpoint.java b/config-model-api/src/main/java/com/yahoo/config/model/api/ApplicationClusterEndpoint.java index a91f95d71b1..38a122c4fab 100644 --- a/config-model-api/src/main/java/com/yahoo/config/model/api/ApplicationClusterEndpoint.java +++ b/config-model-api/src/main/java/com/yahoo/config/model/api/ApplicationClusterEndpoint.java @@ -27,7 +27,7 @@ public class ApplicationClusterEndpoint { private final int weight; private final List<String> hostNames; - public ApplicationClusterEndpoint(DnsName dnsName, Scope scope, RoutingMethod routingMethod, int weight, List<String> hostNames) { + private ApplicationClusterEndpoint(DnsName dnsName, Scope scope, RoutingMethod routingMethod, int weight, List<String> hostNames) { this.dnsName = dnsName; this.scope = scope; this.routingMethod = routingMethod; @@ -64,7 +64,7 @@ public class ApplicationClusterEndpoint { private DnsName dnsName; private Scope scope; private RoutingMethod routingMethod; - private int weigth = 0; + private int weigth = 1; private List<String> hosts; public Builder dnsName(DnsName name) { |