Skip to content

Commit

Permalink
make ADAPTIVE_CUMULATOR static
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiitk committed Jul 14, 2022
1 parent 026d5f5 commit 037d9bf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
@Internal
public abstract class GrpcHttp2ConnectionHandler extends Http2ConnectionHandler {
protected static final int CUMULATOR_COMPOSE_MIN_SIZE = 1024;
public static final Cumulator ADAPTIVE_CUMULATOR =
new NettyAdaptiveCumulator(CUMULATOR_COMPOSE_MIN_SIZE);

@Nullable
protected final ChannelPromise channelUnused;
Expand All @@ -49,7 +51,7 @@ protected GrpcHttp2ConnectionHandler(
super(decoder, encoder, initialSettings);
this.channelUnused = channelUnused;
this.negotiationLogger = negotiationLogger;
setCumulator(new NettyAdaptiveCumulator(CUMULATOR_COMPOSE_MIN_SIZE));
setCumulator(ADAPTIVE_CUMULATOR);
}

/**
Expand Down

0 comments on commit 037d9bf

Please sign in to comment.