Skip to content

Commit

Permalink
[pinpoint-apm#11905] Fixing invalid message handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
emeroad committed Jan 17, 2025
1 parent a4a110c commit 0c2cf17
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public SpanDispatchHandler(SimpleHandler<REQ> spanDataHandler, SimpleHandler<REQ
private SimpleHandler<REQ> getSimpleHandler(Header header) {
final int type = header.getType();
if (type == MessageType.SPAN.getCode()) {
return spanChunkHandler;
} else if (type == MessageType.SPANCHUNK.getCode()) {
return spanDataHandler;
} else if (type == MessageType.SPANCHUNK.getCode()) {
return spanChunkHandler;
}
throw new UnsupportedOperationException("unsupported header:" + header);
}
Expand Down

0 comments on commit 0c2cf17

Please sign in to comment.