[Enhancement] GrpcMessageProtocolResolver has many unused variables and repetitive method def. #3849
Closed
2 tasks done
Labels
enhancement
New feature or request
Search before asking
Enhancement Request
org.apache.eventmesh.protocol.cloudevents.resolver.grpc.GrpcMessageProtocolResolver:
Many unused variable in
buildBatchEvents()
.getMessageItemValue()
andgetHeaderValue()
have the same body.Some logic ignore the existing api.
More code can be extracted into
builderCloudEventBuilder()
.getEventExtension(CloudEvent event, String protocolKey)
is unused.Describe the solution you'd like
Remove unused variables.
Use existing api.
Extract more code into
builderCloudEventBuilder()
.remove
getEventExtension(CloudEvent event, String protocolKey)
.Are you willing to submit PR?
The text was updated successfully, but these errors were encountered: