From 07585461ac07eed2beaa68b322b63cd50a8047f3 Mon Sep 17 00:00:00 2001 From: Morten Tokle Date: Thu, 11 Nov 2021 14:32:41 +0100 Subject: Use weight=1 if unset --- .../java/com/yahoo/config/model/api/ApplicationClusterEndpoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config-model-api') 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 hostNames; - public ApplicationClusterEndpoint(DnsName dnsName, Scope scope, RoutingMethod routingMethod, int weight, List hostNames) { + private ApplicationClusterEndpoint(DnsName dnsName, Scope scope, RoutingMethod routingMethod, int weight, List 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 hosts; public Builder dnsName(DnsName name) { -- cgit v1.2.3