Skip to content
Merged
Prev Previous commit
Change field name.
  • Loading branch information
OlgaMaciaszek committed Sep 24, 2020
commit e14e2e49a679199dc8b1a0fb876464daa856eadb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class BlockingLoadBalancedRetryPolicy implements LoadBalancedRetryPolicy

private final LoadBalancerRetryProperties retryProperties;

private final ServiceInstanceChooser loadBalancerClient;
private final ServiceInstanceChooser serviceInstanceChooser;

private final String serviceId;

Expand All @@ -44,10 +44,10 @@ public class BlockingLoadBalancedRetryPolicy implements LoadBalancedRetryPolicy
private int nextServerCount = 0;

public BlockingLoadBalancedRetryPolicy(String serviceId,
ServiceInstanceChooser loadBalancerClient,
ServiceInstanceChooser serviceInstanceChooser,
LoadBalancerRetryProperties retryProperties) {
this.serviceId = serviceId;
this.loadBalancerClient = loadBalancerClient;
this.serviceInstanceChooser = serviceInstanceChooser;
this.retryProperties = retryProperties;
}

Expand Down Expand Up @@ -84,7 +84,7 @@ public void registerThrowable(LoadBalancedRetryContext context, Throwable throwa
context.setExhaustedOnly();
}
else {
context.setServiceInstance(loadBalancerClient.choose(serviceId));
context.setServiceInstance(serviceInstanceChooser.choose(serviceId));
}
}
else {
Expand Down