DonalEvans commented on a change in pull request #6000:
URL: https://github.com/apache/geode/pull/6000#discussion_r569834457
##########
File path:
geode-wan/src/main/java/org/apache/geode/cache/client/internal/locator/wan/LocatorDiscovery.java
##########
@@ -133,75 +154,69 @@ public void run() {
}
private WanLocatorDiscoverer getDiscoverer() {
- return this.discoverer;
+ return discoverer;
}
private void exchangeLocalLocators() {
int retryAttempt = 1;
while (!getDiscoverer().isStopped()) {
try {
- RemoteLocatorJoinResponse response =
- (RemoteLocatorJoinResponse)
locatorClient.requestToServer(locatorId.getHost(),
- request, WanLocatorDiscoverer.WAN_LOCATOR_CONNECTION_TIMEOUT,
true);
+ RemoteLocatorJoinResponse response = (RemoteLocatorJoinResponse)
locatorClient
+ .requestToServer(locatorId.getHost(), request,
WAN_LOCATOR_CONNECTION_TIMEOUT, true);
if (response != null) {
- LocatorHelper.addExchangedLocators(response.getLocators(),
this.locatorListener);
+ addExchangedLocators(response);
logger.info("Locator discovery task exchanged locator information {}
with {}: {}.",
Review comment:
Done!
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]