Skip to content

Commit

Permalink
Don't create new attribute for the http-channel
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied committed Oct 6, 2023
1 parent 71185b0 commit a2d69b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public void channelRead0(ChannelHandlerContext ctx, DefaultHttpRequest msg) thro
// TODO: GET PROPER MAVEN BUILD
// final Netty4HttpChannel httpChannel = ctx.channel().attr(Netty4HttpServerTransport.HTTP_CHANNEL_KEY).get();
final Netty4HttpChannel httpChannel = ctx.channel()
.attr(AttributeKey.<Netty4HttpChannel>newInstance("opensearch-http-channel"))
.attr(AttributeKey.<Netty4HttpChannel>valueOf("opensearch-http-channel"))
.get();
Matcher matcher = PATTERN_PATH_PREFIX.matcher(msg.uri());
final String suffix = matcher.matches() ? matcher.group(2) : null;
Expand Down

0 comments on commit a2d69b5

Please sign in to comment.