File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
server/src/main/scala/org/http4s/netty/server Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -114,16 +114,13 @@ final class NettyServerBuilder[F[_]] private (
114114 EventLoopHolder [IOUringServerSocketChannel ](
115115 new IOUringEventLoopGroup (1 ),
116116 new IOUringEventLoopGroup (eventLoopThreads))
117- } else
118- if (Epoll .isAvailable) {
117+ } else if (Epoll .isAvailable) {
119118 logger.info(" Using Epoll" )
120119 val acceptorEventLoopGroup = new EpollEventLoopGroup (1 )
121120 acceptorEventLoopGroup.setIoRatio(100 )
122121 val workerEventLoopGroup = new EpollEventLoopGroup (eventLoopThreads)
123122 workerEventLoopGroup.setIoRatio(80 )
124- EventLoopHolder [EpollServerSocketChannel ](
125- acceptorEventLoopGroup,
126- workerEventLoopGroup)
123+ EventLoopHolder [EpollServerSocketChannel ](acceptorEventLoopGroup, workerEventLoopGroup)
127124 } else if (KQueue .isAvailable) {
128125 logger.info(" Using KQueue" )
129126 EventLoopHolder [KQueueServerSocketChannel ](
You can’t perform that action at this time.
0 commit comments