Skip to content

Commit 23e8ee9

Browse files
committed
Merge branch 'series/0.4' into series/0.5
2 parents 6918042 + 61b08f9 commit 23e8ee9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

server/src/main/scala/org/http4s/netty/server/NettyServerBuilder.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff 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](

0 commit comments

Comments
 (0)