Skip to content

Commit

Permalink
scalafmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hamnis committed Apr 14, 2022
1 parent 981cae0 commit 61b08f9
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,13 @@ final class NettyServerBuilder[F[_]] private (
EventLoopHolder[IOUringServerSocketChannel](
new IOUringEventLoopGroup(1),
new IOUringEventLoopGroup(eventLoopThreads))
} else
if (Epoll.isAvailable) {
} else if (Epoll.isAvailable) {
logger.info("Using Epoll")
val acceptorEventLoopGroup = new EpollEventLoopGroup(1)
acceptorEventLoopGroup.setIoRatio(100)
val workerEventLoopGroup = new EpollEventLoopGroup(eventLoopThreads)
workerEventLoopGroup.setIoRatio(80)
EventLoopHolder[EpollServerSocketChannel](
acceptorEventLoopGroup,
workerEventLoopGroup)
EventLoopHolder[EpollServerSocketChannel](acceptorEventLoopGroup, workerEventLoopGroup)
} else if (KQueue.isAvailable) {
logger.info("Using KQueue")
EventLoopHolder[KQueueServerSocketChannel](
Expand Down

0 comments on commit 61b08f9

Please sign in to comment.