Skip to content

Commit

Permalink
Merge pull request #6 from peachisai/sit
Browse files Browse the repository at this point in the history
fix comment
  • Loading branch information
peachisai authored Oct 24, 2023
2 parents f7d5759 + 304c1ca commit f5113e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public void beforeMethod(EnhancedInstance objInst, Method method, Object[] allAr

@Override
public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allArguments, Class<?>[] argumentsTypes, Object ret) throws Throwable {
// if the removed handler is a enhanced handler by skywalking, we call the method again to remove and return the user handler
// If the removed handler is a enhanced handler by skywalking, we call the method again to remove and return the user handler.
if (((ChannelHandler) ret).getClass().getName().startsWith(NettyConstants.HANDLER_PACKAGE_NAME)) {
return ((ChannelPipeline) objInst).removeLast();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public Object afterMethod(EnhancedInstance objInst, Method method, Object[] allA
Channel channel = ctx.channel();
ChannelPipeline pipeline = channel.pipeline();

// If the removal of the handler fails
// If the removal of the handler fails.
if (pipeline.context((ChannelHandler) objInst) != null) {
return ret;
}
Expand Down

0 comments on commit f5113e3

Please sign in to comment.