Skip to content

Commit c51fefa

Browse files
committed
Fix up compilation error
1 parent 6f6b24b commit c51fefa

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

java/src/org/openqa/selenium/netty/server/NettyServer.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
import io.netty.bootstrap.ServerBootstrap;
2121
import io.netty.channel.Channel;
2222
import io.netty.channel.EventLoopGroup;
23-
import io.netty.channel.MultiThreadIoEventLoopGroup;
24-
import io.netty.channel.nio.NioIoHandler;
23+
import io.netty.channel.nio.NioEventLoopGroup;
2524
import io.netty.channel.socket.nio.NioServerSocketChannel;
2625
import io.netty.handler.logging.LogLevel;
2726
import io.netty.handler.logging.LoggingHandler;
@@ -100,8 +99,8 @@ public NettyServer(
10099

101100
this.handler = handler.with(new ErrorFilter().andThen(new AddWebDriverSpecHeaders()));
102101

103-
bossGroup = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory());
104-
workerGroup = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
102+
bossGroup = new NioEventLoopGroup(1);
103+
workerGroup = new NioEventLoopGroup();
105104

106105
port = options.getPort();
107106
host = options.getHostname().orElse("0.0.0.0");

0 commit comments

Comments
 (0)