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

optimize: remove duplicate validAddress code #3459

Merged
merged 1 commit into from
Jan 11, 2021

Conversation

luoxn28
Copy link
Contributor

@luoxn28 luoxn28 commented Jan 9, 2021

Ⅰ. Describe what this PR did

移除NacosRegistryServiceImpl类中重复的validAddress方法,保持和其他RegistryService实现一样,使用NetUtil.validAddress方法。

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@codecov-io
Copy link

codecov-io commented Jan 9, 2021

Codecov Report

Merging #3459 (26c80a9) into develop (108e83c) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop    #3459   +/-   ##
==========================================
  Coverage      51.56%   51.57%           
- Complexity      3373     3377    +4     
==========================================
  Files            617      617           
  Lines          20438    20438           
  Branches        2565     2564    -1     
==========================================
+ Hits           10538    10540    +2     
  Misses          8839     8839           
+ Partials        1061     1059    -2     
Impacted Files Coverage Δ Complexity Δ
...in/java/io/seata/server/session/GlobalSession.java 84.09% <0.00%> (+0.45%) 72.00% <0.00%> (+1.00%)
...o/seata/server/coordinator/DefaultCoordinator.java 54.41% <0.00%> (+0.49%) 29.00% <0.00%> (+1.00%)

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM . please register pr in the two md files in the changes folder

@funky-eyes funky-eyes added this to the 1.5.0 milestone Jan 9, 2021
@funky-eyes funky-eyes added module/discovery discovery module type: optimize first-time contributor first-time contributor labels Jan 9, 2021
Copy link
Contributor

@caohdgege caohdgege left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@slievrly slievrly left a comment

Choose a reason for hiding this comment

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

LGTM

@l81893521 l81893521 merged commit 894b42c into apache:develop Jan 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants