Rename static DiscoveryNode#masterNode(Settings) to isMasterNode

Original commit: elastic/x-pack-elasticsearch@7b9ec10675
This commit is contained in:
javanna 2016-03-30 14:57:53 +02:00 committed by Luca Cavanna
parent bd6775e0da
commit be01a18b35
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ public class LicensesService extends AbstractLifecycleComponent<LicensesService>
this.clusterService = clusterService; this.clusterService = clusterService;
this.threadPool = threadPool; this.threadPool = threadPool;
this.transportService = transportService; this.transportService = transportService;
if (DiscoveryNode.masterNode(settings)) { if (DiscoveryNode.isMasterNode(settings)) {
transportService.registerRequestHandler(REGISTER_TRIAL_LICENSE_ACTION_NAME, TransportRequest.Empty::new, transportService.registerRequestHandler(REGISTER_TRIAL_LICENSE_ACTION_NAME, TransportRequest.Empty::new,
ThreadPool.Names.SAME, new RegisterTrialLicenseRequestHandler()); ThreadPool.Names.SAME, new RegisterTrialLicenseRequestHandler());
} }