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 @@ -112,16 +112,13 @@ final class NettyServerBuilder[F[_]] private (
112112 EventLoopHolder [IOUringServerSocketChannel ](
113113 new IOUringEventLoopGroup (1 ),
114114 new IOUringEventLoopGroup (eventLoopThreads))
115- } else
116- if (Epoll .isAvailable) {
115+ } else if (Epoll .isAvailable) {
117116 logger.info(" Using Epoll" )
118117 val acceptorEventLoopGroup = new EpollEventLoopGroup (1 )
119118 acceptorEventLoopGroup.setIoRatio(100 )
120119 val workerEventLoopGroup = new EpollEventLoopGroup (eventLoopThreads)
121120 workerEventLoopGroup.setIoRatio(80 )
122- EventLoopHolder [EpollServerSocketChannel ](
123- acceptorEventLoopGroup,
124- workerEventLoopGroup)
121+ EventLoopHolder [EpollServerSocketChannel ](acceptorEventLoopGroup, workerEventLoopGroup)
125122 } else if (KQueue .isAvailable) {
126123 logger.info(" Using KQueue" )
127124 EventLoopHolder [KQueueServerSocketChannel ](
You can’t perform that action at this time.
0 commit comments