-
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
feat(grpc): 支持client grpc 调用 #275
feat(grpc): 支持client grpc 调用 #275
Conversation
Signed-off-by: imxyb <xyb4638@gmail.com>
Codecov Report
@@ Coverage Diff @@
## feature/grpc #275 +/- ##
================================================
- Coverage 66.59% 66.16% -0.43%
================================================
Files 112 118 +6
Lines 7175 7380 +205
================================================
+ Hits 4778 4883 +105
- Misses 1932 2017 +85
- Partials 465 480 +15
Continue to review full report at Codecov.
|
feat(dubbo/invoker): 修改dubbo 关闭的方式
Add: Split config center GetConfig method
fix(common): use new uuid method
Develop generic code fix
@@ -449,6 +449,7 @@ github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81P | |||
github.com/tebeka/strftime v0.1.3 h1:5HQXOqWKYRFfNyBMNVc9z5+QzuBtIXy03psIhtdJYto= | |||
github.com/tebeka/strftime v0.1.3/go.mod h1:7wJm3dZlpr4l/oVK0t1HYIc4rMzQ2XJlOMIUJUJH6XQ= | |||
github.com/tent/http-link-go v0.0.0-20130702225549-ac974c61c2f9/go.mod h1:RHkNRtSLfOK7qBTHaeSX1D6BNpI3qw7NTxsmNr4RvN8= | |||
github.com/tevid/gohamcrest v1.1.1 h1:ou+xSqlIw1xfGTg1uq1nif/htZ2S3EzRqLm2BP+tYU0= |
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.
u used so much unqualified packages.
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 from agollo:
-> % go mod why github.com/tevid/gohamcrest
github.com/tevid/gohamcrest
github.com/apache/dubbo-go/config_center/apollo
github.com/zouyx/agollo
github.com/zouyx/agollo.test
github.com/tevid/gohamcrest
Imp: receive heartbeat from server
c976a75
to
ebcb9f6
Compare
} | ||
|
||
gp.serverLock.Lock() | ||
_, ok = gp.serverMap[url.Location] |
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.
How about:
gp.serverLock.Lock()
_, ok = gp.serverMap[url.Location]
if !ok {
srv := NewServer()
gp.serverMap[url.Location] = srv
gp.serverLock.Unlock()
srv.Start(url)
return
}
gp.serverLock.Unlock()
I think we can release the lock before invoking srv.Start(url)
LGTM |
No description provided.