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

fix(config): Random ports can't be assgined #2384

Merged
merged 1 commit into from
Aug 16, 2023

Conversation

justxuewei
Copy link
Member

The condition of assigning a random port for protocols should be that port
is less than or equal to 0, not the length of the port string.

Fixes: #2382

The condition of assigning a random port for protocols should be that port
is less than or equal to 0, not the length of the port string.

Fixes: apache#2382

Signed-off-by: Xuewei Niu <justxuewei@apache.org>
@sonarcloud
Copy link

sonarcloud bot commented Aug 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@codecov-commenter
Copy link

Codecov Report

Merging #2384 (568fac1) into main (1e78aaf) will decrease coverage by 0.30%.
The diff coverage is 0.00%.

❗ Current head 568fac1 differs from pull request most recent head 6a81761. Consider uploading reports for the commit 6a81761 to get more accurate results

@@            Coverage Diff             @@
##             main    #2384      +/-   ##
==========================================
- Coverage   44.40%   44.10%   -0.30%     
==========================================
  Files         305      305              
  Lines       18618    18623       +5     
==========================================
- Hits         8267     8214      -53     
- Misses       9482     9546      +64     
+ Partials      869      863       -6     
Files Changed Coverage Δ
config/service_config.go 50.63% <0.00%> (-1.14%) ⬇️

... and 3 files with indirect coverage changes

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

@justxuewei justxuewei changed the title fix(config): An issue that random ports can't be assgined fix(config): Random ports can't be assgined Aug 16, 2023
@chickenlj chickenlj merged commit bf5f2dd into apache:main Aug 16, 2023
6 checks passed
maguowei added a commit to maguowei/dubbo-go that referenced this pull request Sep 27, 2023
maguowei added a commit to maguowei/dubbo-go that referenced this pull request Sep 28, 2023
maguowei added a commit to maguowei/dubbo-go that referenced this pull request Sep 28, 2023
chickenlj pushed a commit that referenced this pull request Oct 9, 2023
maguowei added a commit to maguowei/dubbo-go that referenced this pull request Oct 11, 2023
maguowei added a commit to maguowei/dubbo-go that referenced this pull request Oct 11, 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