-
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
add serviceMappingListener for application service discovery #2205
Conversation
It looks like this pull request breaks the ci tests, please fix it. |
pls fix the ci confliction |
Codecov Report
@@ Coverage Diff @@
## 3.0 #2205 +/- ##
==========================================
- Coverage 44.15% 43.99% -0.16%
==========================================
Files 283 284 +1
Lines 17164 17271 +107
==========================================
+ Hits 7578 7599 +21
- Misses 8789 8872 +83
- Partials 797 800 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Lgtm, thanks!
Group: group, | ||
}) | ||
} | ||
|
||
// RegisterServiceAppMapping map the specified Dubbo service interface to current Dubbo app name | ||
func (n *nacosMetadataReport) RegisterServiceAppMapping(key string, group string, value string) error { | ||
oldVal, err := n.getConfig(vo.ConfigParam{ |
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.
OldVal is a list of service names. If strings.Contains(oldVal, newServiceName), then the SNP registration will be skipped, e.g. if oldVal = dubbo.io-2 and newServiceName = dubbo.io, then newServiceName will be skipped.
Kudos, SonarCloud Quality Gate passed! |
lgtm |
issue: #2167
support add service mapping listen for service change