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

Opt: opt err handling #536

Merged
merged 4 commits into from
May 25, 2020
Merged

Opt: opt err handling #536

merged 4 commits into from
May 25, 2020

Conversation

watermelo
Copy link
Member

What this PR does:
optimize error handling

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@watermelo watermelo changed the title Featue/opt err handling Opt: opt err handling May 22, 2020
Copy link
Member

@zouyx zouyx left a comment

Choose a reason for hiding this comment

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

Travis still failing

@codecov-commenter
Copy link

Codecov Report

Merging #536 into develop will decrease coverage by 0.23%.
The diff coverage is 63.63%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #536      +/-   ##
===========================================
- Coverage    66.55%   66.32%   -0.24%     
===========================================
  Files          184      184              
  Lines         9729     9712      -17     
===========================================
- Hits          6475     6441      -34     
- Misses        2613     2629      +16     
- Partials       641      642       +1     
Impacted Files Coverage Δ
config/metadata_report_config.go 48.71% <0.00%> (ø)
registry/directory/directory.go 80.11% <70.00%> (-1.10%) ⬇️
protocol/dubbo/pool.go 76.81% <0.00%> (-4.47%) ⬇️
remoting/kubernetes/listener.go 56.07% <0.00%> (-2.81%) ⬇️
common/url.go 65.83% <0.00%> (-1.86%) ⬇️
cluster/loadbalance/consistent_hash.go 90.32% <0.00%> (-0.86%) ⬇️
config_center/configurator/override.go 75.00% <0.00%> (-0.41%) ⬇️
registry/protocol/protocol.go 80.78% <0.00%> (-0.33%) ⬇️
registry/consul/listener.go 81.25% <0.00%> (-0.24%) ⬇️
config/consumer_config.go 56.25% <0.00%> (ø)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 84b38fe...d3540d3. Read the comment docs.

Copy link
Contributor

@Patrick0308 Patrick0308 left a comment

Choose a reason for hiding this comment

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

Minor problem

Comment on lines +185 to +189
err = staticDir.BuildRouterChain(invokers)
if err != nil {
logger.Error(err)
continue
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this

Suggested change
err = staticDir.BuildRouterChain(invokers)
if err != nil {
logger.Error(err)
continue
}
if err = staticDir.BuildRouterChain(invokers); err != nil {
logger.Error(err)
continue
}

@fangyincheng fangyincheng merged commit 8c8c95c into apache:develop May 25, 2020
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.

6 participants