Skip to content

Commit 0c04357

Browse files
committed
[grid] Removing default value for max-threads to avoid noisy warnings due to deprecation.
[skip ci]
1 parent c025a92 commit 0c04357

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

java/src/org/openqa/selenium/grid/server/BaseServerFlags.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717

1818
package org.openqa.selenium.grid.server;
1919

20-
import static org.openqa.selenium.grid.config.StandardGridRoles.HTTPD_ROLE;
21-
2220
import com.google.auto.service.AutoService;
2321

2422
import com.beust.jcommander.Parameter;
@@ -31,6 +29,8 @@
3129
import java.util.Collections;
3230
import java.util.Set;
3331

32+
import static org.openqa.selenium.grid.config.StandardGridRoles.HTTPD_ROLE;
33+
3434
@AutoService(HasRoles.class)
3535
public class BaseServerFlags implements HasRoles {
3636

@@ -65,7 +65,7 @@ public class BaseServerFlags implements HasRoles {
6565
+ "Default value is: (available processors) * 3.",
6666
names = "--max-threads")
6767
@ConfigValue(section = SERVER_SECTION, name = "max-threads", example = "12")
68-
private int maxThreads = Runtime.getRuntime().availableProcessors() * 3;
68+
private int maxThreads;
6969

7070
@Parameter(
7171
names = "--allow-cors",

0 commit comments

Comments
 (0)