Skip to content

Commit

Permalink
Remove component settings from AbstractComponent
Browse files Browse the repository at this point in the history
Related to elastic/elasticsearch#9919

Closes #35.
  • Loading branch information
dadoonet committed Feb 28, 2015
1 parent bbf1375 commit 1fd0521
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -53,7 +53,7 @@ public class JavaScriptScriptEngineService extends AbstractComponent implements
public JavaScriptScriptEngineService(Settings settings) {
super(settings);

this.optimizationLevel = componentSettings.getAsInt("optimization_level", 1);
this.optimizationLevel = settings.getAsInt("script.javascript.optimization_level", 1);

Context ctx = Context.enter();
try {
Expand Down

0 comments on commit 1fd0521

Please sign in to comment.