mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-21 12:27:37 +00:00
Changed es version from string to class Version.
This commit is contained in:
parent
966fdfdfb8
commit
591a76bd88
@ -61,7 +61,7 @@ public class NodeService extends AbstractComponent {
|
||||
@Nullable
|
||||
private String hostname;
|
||||
|
||||
private final String version;
|
||||
private final Version version;
|
||||
|
||||
@Inject
|
||||
public NodeService(Settings settings, ThreadPool threadPool, MonitorService monitorService, Discovery discovery, ClusterService clusterService, TransportService transportService, IndicesService indicesService) {
|
||||
@ -76,7 +76,7 @@ public class NodeService extends AbstractComponent {
|
||||
if (address != null) {
|
||||
this.hostname = address.getHostName();
|
||||
}
|
||||
this.version = Version.CURRENT.toString();
|
||||
this.version = Version.CURRENT;
|
||||
}
|
||||
|
||||
public void setHttpServer(@Nullable HttpServer httpServer) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user