mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-19 11:24:54 +00:00
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.threadPool = threadPool;
|
||||
this.transportService = transportService;
|
||||
if (DiscoveryNode.masterNode(settings)) {
|
||||
if (DiscoveryNode.isMasterNode(settings)) {
|
||||
transportService.registerRequestHandler(REGISTER_TRIAL_LICENSE_ACTION_NAME, TransportRequest.Empty::new,
|
||||
ThreadPool.Names.SAME, new RegisterTrialLicenseRequestHandler());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user