Rename static DiscoveryNode#masterNode(Settings) to isMasterNode
Original commit: elastic/x-pack-elasticsearch@7b9ec10675
This commit is contained in:
parent
bd6775e0da
commit
be01a18b35
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue