Minor change in ReactorNetty2TcpClient
A follow-up on recent addition of ReactorNetty2TcpClient and switch to Netty 5 Buffer.
This commit is contained in:
@@ -340,7 +340,7 @@ public class ReactorNetty2TcpClient<P> implements TcpOperations<P> {
|
||||
protected void decode(ChannelHandlerContext ctx, Buffer buffer) throws Exception {
|
||||
ByteBuffer byteBuffer = ByteBuffer.allocate(buffer.readableBytes());
|
||||
buffer.readBytes(byteBuffer);
|
||||
byteBuffer.position(0);
|
||||
byteBuffer.flip();
|
||||
List<Message<P>> messages = this.codec.decode(byteBuffer);
|
||||
for (Message<P> message : messages) {
|
||||
ctx.fireChannelRead(message);
|
||||
|
||||
Reference in New Issue
Block a user