Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
kyri-petrou committed Sep 7, 2024
1 parent b3f6592 commit 206f214
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ private[zio] final case class NettyDriver(
}
}
chf <- ZIO.attempt {
val b = new ServerBootstrap()
new ServerBootstrap()
.group(boss, eventLoopGroup)
.channelFactory(channelFactory)
.childHandler(channelInitializer)
.option[Integer](ChannelOption.SO_BACKLOG, serverConfig.soBacklog)
.childOption[JBoolean](ChannelOption.TCP_NODELAY, serverConfig.tcpNoDelay)

b.bind(serverConfig.address)
.bind(serverConfig.address)
}
_ <- NettyFutureExecutor.scoped(chf)
_ <- ZIO.succeed(ResourceLeakDetector.setLevel(nettyConfig.leakDetectionLevel.toNetty))
Expand Down

0 comments on commit 206f214

Please sign in to comment.