Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE #3849]GrpcMessageProtocolResolver has many unused variables and repetitive method def. #3850

Merged
merged 3 commits into from
May 6, 2023

Conversation

pandaapo
Copy link
Member

Fixes #3849.
Fixes #3839

Motivation

org.apache.eventmesh.protocol.cloudevents.resolver.grpc.GrpcMessageProtocolResolver:

Many unused variable in buildBatchEvents().

getMessageItemValue() and getHeaderValue() have the same body.

Some logic ignore the existing api.

And so on.

Modifications

Remove unused variables and repetitive method. Use existing api. And other modifications.

Documentation

  • Does this pull request introduce a new feature? no

@yelbom
Copy link

yelbom commented Apr 29, 2023

My desktop won't connect to my modem/hotspot s🤨

@pandaapo
Copy link
Member Author

pandaapo commented May 1, 2023

My desktop won't connect to my modem/hotspot s🤨

The community welcomes discussions, questions, contributions, and other technical related content, but please do not post such comments that have no meaning.

Copy link
Contributor

@Alonexc Alonexc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov
Copy link

codecov bot commented May 5, 2023

Codecov Report

Merging #3850 (c254b93) into master (91aab4d) will increase coverage by 0.02%.
The diff coverage is 14.28%.

❗ Current head c254b93 differs from pull request most recent head 149b297. Consider uploading reports for the commit 149b297 to get more accurate results

@@             Coverage Diff              @@
##             master    #3850      +/-   ##
============================================
+ Coverage     13.77%   13.79%   +0.02%     
  Complexity     1290     1290              
============================================
  Files           571      571              
  Lines         29129    29098      -31     
  Branches       2837     2844       +7     
============================================
+ Hits           4012     4015       +3     
+ Misses        24745    24710      -35     
- Partials        372      373       +1     
Impacted Files Coverage Δ
...olver/http/SendMessageBatchV2ProtocolResolver.java 0.00% <0.00%> (ø)
...olver/http/SendMessageRequestProtocolResolver.java 0.00% <0.00%> (ø)
...mesh/storage/kafka/consumer/KafkaConsumerImpl.java 9.09% <ø> (ø)
.../knative/cloudevent/impl/KnativeMessageWriter.java 61.11% <0.00%> (ø)
...eventmesh/storage/pravega/PravegaConsumerImpl.java 16.66% <ø> (ø)
...torage/pravega/client/PravegaCloudEventWriter.java 0.00% <ø> (ø)
...standalone/consumer/StandaloneConsumerAdaptor.java 0.00% <0.00%> (ø)
...che/eventmesh/trace/jaeger/JaegerTraceService.java 60.00% <ø> (ø)
...eventmesh/trace/pinpoint/PinpointTraceService.java 52.17% <ø> (ø)
...che/eventmesh/trace/zipkin/ZipkinTraceService.java 55.12% <ø> (ø)
... and 2 more

... and 7 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xwm1992 xwm1992 merged commit 733d6ef into apache:master May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants