Skip to content

Commit 07252ee

Browse files
committed
set cumulator in the constructor
1 parent af05f5c commit 07252ee

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

netty/src/main/java/io/grpc/netty/GrpcHttp2ConnectionHandler.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
@Internal
3333
public abstract class GrpcHttp2ConnectionHandler extends Http2ConnectionHandler {
3434

35-
{
36-
setCumulator(COMPOSITE_CUMULATOR);
37-
}
38-
3935
@Nullable
4036
protected final ChannelPromise channelUnused;
4137

@@ -46,6 +42,7 @@ protected GrpcHttp2ConnectionHandler(
4642
Http2Settings initialSettings) {
4743
super(decoder, encoder, initialSettings);
4844
this.channelUnused = channelUnused;
45+
setCumulator(COMPOSITE_CUMULATOR);
4946
}
5047

5148
/**

0 commit comments

Comments
 (0)