Skip to content

Commit 1fd0521

Browse files
committed
Remove component settings from AbstractComponent
Related to #9919 Closes #35.
1 parent bbf1375 commit 1fd0521

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/script/javascript/JavaScriptScriptEngineService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class JavaScriptScriptEngineService extends AbstractComponent implements
5353
public JavaScriptScriptEngineService(Settings settings) {
5454
super(settings);
5555

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

5858
Context ctx = Context.enter();
5959
try {

0 commit comments

Comments
 (0)