Remove component settings from AbstractComponent
Related to elasticsearch/elasticsearch#9919 Closes #35.
This commit is contained in:
parent
bbf1375c98
commit
1fd0521a33
|
@ -53,7 +53,7 @@ public class JavaScriptScriptEngineService extends AbstractComponent implements
|
||||||
public JavaScriptScriptEngineService(Settings settings) {
|
public JavaScriptScriptEngineService(Settings settings) {
|
||||||
super(settings);
|
super(settings);
|
||||||
|
|
||||||
this.optimizationLevel = componentSettings.getAsInt("optimization_level", 1);
|
this.optimizationLevel = settings.getAsInt("script.javascript.optimization_level", 1);
|
||||||
|
|
||||||
Context ctx = Context.enter();
|
Context ctx = Context.enter();
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue