We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a81b639 commit ad12dddCopy full SHA for ad12ddd
rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/TcpDuplexConnection.java
@@ -31,7 +31,6 @@
31
public final class TcpDuplexConnection extends BaseDuplexConnection {
32
33
private final Connection connection;
34
- private final ByteBufAllocator allocator = ByteBufAllocator.DEFAULT;
35
private final boolean encodeLength;
36
37
/**
@@ -89,7 +88,7 @@ public Mono<Void> send(Publisher<ByteBuf> frames) {
89
88
90
private ByteBuf encode(ByteBuf frame) {
91
if (encodeLength) {
92
- return FrameLengthFlyweight.encode(allocator, frame.readableBytes(), frame);
+ return FrameLengthFlyweight.encode(alloc(), frame.readableBytes(), frame);
93
} else {
94
return frame;
95
}
0 commit comments