services: fix a local variable name (#6802)

This commit is contained in:
Kun Zhang 2020-03-04 14:31:09 -08:00 committed by GitHub
parent 6d3ffc7892
commit a57f1a9636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -181,11 +181,11 @@ final class HealthCheckingLoadBalancerFactory extends Factory {
@Override
public void handleResolvedAddresses(ResolvedAddresses resolvedAddresses) {
Map<String, ?> serviceConfig =
Map<String, ?> healthCheckingConfig =
resolvedAddresses
.getAttributes()
.get(LoadBalancer.ATTR_HEALTH_CHECKING_CONFIG);
String serviceName = ServiceConfigUtil.getHealthCheckedServiceName(serviceConfig);
String serviceName = ServiceConfigUtil.getHealthCheckedServiceName(healthCheckingConfig);
helper.setHealthCheckedService(serviceName);
super.handleResolvedAddresses(resolvedAddresses);
}