-
Notifications
You must be signed in to change notification settings - Fork 963
Improve cache init time and add application name #2420
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
Conversation
Kudos, SonarCloud Quality Gate passed!
|
Codecov Report
@@ Coverage Diff @@
## main #2420 +/- ##
==========================================
- Coverage 45.04% 45.03% -0.02%
==========================================
Files 269 269
Lines 18163 18167 +4
==========================================
- Hits 8182 8181 -1
- Misses 9109 9116 +7
+ Partials 872 870 -2
... and 1 file with indirect coverage changes 📣 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.
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.
"dubbo.apache.org/dubbo-go/v3/registry" | ||
"dubbo.apache.org/dubbo-go/v3/registry/servicediscovery/store" | ||
"dubbo.apache.org/dubbo-go/v3/remoting" | ||
) | ||
|
||
var ( | ||
metaCache *store.CacheManager | ||
one sync.Once |
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.
改下名字吧,cacheOnce
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.
Agreed, 'once' or 'XxxOnce' should be a better name.
No description provided.