-
Notifications
You must be signed in to change notification settings - Fork 929
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
register not use metadata configuration. #1565
Conversation
420814a
to
707df34
Compare
67ff14a
to
6ad5a32
Compare
Codecov Report
@@ Coverage Diff @@
## 3.0 #1565 +/- ##
==========================================
- Coverage 41.81% 41.75% -0.06%
==========================================
Files 258 258
Lines 15117 15137 +20
==========================================
Hits 6321 6321
- Misses 8055 8077 +22
+ Partials 741 739 -2
Continue to review full report at Codecov.
|
Thanks for your contribution, I'll test it locally to confirm soon. |
mark:该 pr 也修复了 #1573 |
registry/nacos/service_discovery.go
Outdated
common.WithParams(url.GetParams()), | ||
common.WithParamsValue(constant.NacosUsername, url.Username), | ||
common.WithParamsValue(constant.NacosPassword, url.Password), | ||
common.WithParamsValue(constant.NacosNamespaceID, url.GetParam(constant.NamespaceKey, ""))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
还有一个问题,假如用户没设置 namespace,在 config_center_config.go 里,给这个字段设置了一个默认值 dubbo,所以 url.GetParam(constant.NamespaceKey, "") 这个代码应该永远不会返回 "",需要改一下 namespace 在 config_center_config.go 的默认值。
6ad5a32
to
0b33524
Compare
@Mulavar |
What this PR does:
1:service register not use metadata configuration.
2:metadata-type=local , metadata information will not be uploaded to the configuration center
Which issue(s) this PR fixes:
Fixes :#1544
Special notes for your reviewer:
Does this PR introduce a user-facing change?: