Skip to content

Commit

Permalink
Refactor NetworkServer
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mashonskii committed Jun 7, 2024
1 parent f69c34a commit c85d0cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import io.netty.channel._
@Sharable
class WriteErrorHandler extends ChannelOutboundHandlerAdapter with ScorexLogging {
override def write(ctx: ChannelHandlerContext, msg: AnyRef, promise: ChannelPromise): Unit =
ctx.channel.writeAndFlush(
ctx.write(
msg,
promise.unvoid().addListener { (chf: ChannelFuture) =>
if (!chf.isSuccess) {
Expand Down

0 comments on commit c85d0cc

Please sign in to comment.