Skip to content

Commit

Permalink
fix Cumulator ut error
Browse files Browse the repository at this point in the history
  • Loading branch information
md_li committed Apr 15, 2024
1 parent 1dd285e commit 3d896ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ public ReceiveHandler(AtomicReference<ByteBuf> buffer) {
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
ByteBuf byteBuf = (ByteBuf) msg;
byteBuf.retain();
cumulator.cumulate(ctx.channel().alloc(), cumulation, byteBuf);
cumulation = cumulator.cumulate(ctx.channel().alloc(), cumulation, byteBuf);
buffer.set(cumulation);
super.channelRead(ctx, msg);
}
Expand Down

0 comments on commit 3d896ce

Please sign in to comment.