Skip to content

Commit

Permalink
Remove static from http2metricschannelhandler to allow for override
Browse files Browse the repository at this point in the history
  • Loading branch information
$(git --no-pager log --format=format:'%an' -n 1) committed Feb 29, 2024
1 parent 401d2a4 commit e07ad8d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ protected static void incrementErrorCounter(
.increment();
}

protected static void incrementCounter(Registry registry, String counterName, String metricId, Http2Frame frame) {
protected void incrementCounter(Registry registry, String counterName, String metricId, Http2Frame frame) {
long errorCode;
if (frame instanceof Http2ResetFrame) {
errorCode = ((Http2ResetFrame) frame).errorCode();
Expand All @@ -69,7 +69,7 @@ protected static void incrementCounter(Registry registry, String counterName, St
}

@ChannelHandler.Sharable
private static class Inbound extends ChannelInboundHandlerAdapter {
private class Inbound extends ChannelInboundHandlerAdapter {
private final Registry registry;
private final String metricId;
private final String frameCounterName;
Expand Down Expand Up @@ -117,7 +117,7 @@ public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws E
}

@ChannelHandler.Sharable
private static class Outbound extends ChannelOutboundHandlerAdapter {
private class Outbound extends ChannelOutboundHandlerAdapter {
private final Registry registry;
private final String metricId;
private final String frameCounterName;
Expand Down

0 comments on commit e07ad8d

Please sign in to comment.