Skip to content

Conversation

@fabian4
Copy link
Member

@fabian4 fabian4 commented Jul 15, 2023

Fixes #4204.

Modifications

  • Catch Exception instead of Throwable.
  • Repeat the code extraction as a method.

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)
  • If a feature is not applicable for documentation, explain why? (code refactoring)
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation (not applicable)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution.

@fabian4 fabian4 requested a review from Pil0tXia July 16, 2023 06:39
Copy link
Member

@Pil0tXia Pil0tXia 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 Jul 17, 2023

Codecov Report

Merging #4229 (26242e0) into master (c5357d6) will decrease coverage by 0.04%.
The diff coverage is 11.80%.

❗ Current head 26242e0 differs from pull request most recent head 5f42ef0. Consider uploading reports for the commit 5f42ef0 to get more accurate results

@@             Coverage Diff              @@
##             master    #4229      +/-   ##
============================================
- Coverage     16.90%   16.87%   -0.04%     
- Complexity     1416     1426      +10     
============================================
  Files           589      593       +4     
  Lines         25837    26063     +226     
  Branches       2394     2401       +7     
============================================
+ Hits           4369     4398      +29     
- Misses        21031    21224     +193     
- Partials        437      441       +4     
Impacted Files Coverage Δ
...entmesh/common/protocol/http/HttpEventWrapper.java 0.00% <0.00%> (ø)
.../common/protocol/http/common/EventMeshRetCode.java 0.00% <0.00%> (ø)
...ntmesh/common/protocol/http/common/RequestURI.java 0.00% <0.00%> (ø)
...he/eventmesh/common/protocol/tcp/Subscription.java 0.00% <0.00%> (ø)
...esh/registry/consul/service/HeatBeatScheduler.java 0.00% <0.00%> (ø)
...he/eventmesh/runtime/boot/EventMeshGrpcServer.java 0.75% <0.00%> (ø)
...he/eventmesh/runtime/boot/EventMeshHTTPServer.java 0.52% <0.00%> (-0.02%) ⬇️
...e/core/protocol/grpc/consumer/ConsumerManager.java 0.00% <0.00%> (ø)
...re/protocol/grpc/processor/HeartbeatProcessor.java 0.00% <0.00%> (ø)
...ntime/core/protocol/grpc/service/EventEmitter.java 0.00% <0.00%> (ø)
... and 17 more

... and 1 file with indirect coverage changes

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

xwm1992
xwm1992 previously approved these changes Jul 17, 2023
Copy link
Member

@Pil0tXia Pil0tXia left a comment

Choose a reason for hiding this comment

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

Well, +18 -18, no change in the number of lines but extracted a method. Acceptable.

@fabian4
Copy link
Member Author

fabian4 commented Jul 25, 2023

ping @xwm1992 @lrhkobe

@xwm1992 xwm1992 merged commit e5915f7 into apache:master Jul 27, 2023
@fabian4 fabian4 deleted the fix-4204 branch July 27, 2023 07:17
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
…4229)

* Repeat the code extraction as a method.

* Do some code optimization.[util]

* Do some code optimization.[util]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Repeat the code extraction as a method.

6 participants