-
Notifications
You must be signed in to change notification settings - Fork 932
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
Nacos MetadataReport implementation #522
Conversation
Codecov Report
@@ Coverage Diff @@
## feature/dubbo-2.7.5 #522 +/- ##
=======================================================
+ Coverage 66.06% 66.16% +0.10%
=======================================================
Files 203 204 +1
Lines 10558 10610 +52
=======================================================
+ Hits 6975 7020 +45
- Misses 2909 2912 +3
- Partials 674 678 +4
Continue to review full report at Codecov.
|
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
ftry := &nacosMetadataReportFactory{} | ||
extension.SetMetadataReportFactory("nacos", func() factory.MetadataReportFactory { | ||
return ftry | ||
}) |
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.
It is recommended to provide a method named Newxxx?
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.
If we provide NewXXX method, the factory should be singleton and we need factoryInstance + factoryInitOnce, but using closure can simply the codes
metadata/report/nacos/report.go
Outdated
if err != nil { | ||
logger.Errorf("The config is invalid: %s", cfg) | ||
} |
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.
If error is not null .....then not return? Is it right logic?
And this method has not testcase to cover it .
What this PR does:
Implement MetadataReport based on Nacos
Fixes #446