Skip to content
Snippets Groups Projects
Commit 98ba75e4 authored by wangwx's avatar wangwx
Browse files

fix comments

parent 9d8c910a
No related branches found
No related tags found
No related merge requests found
...@@ -38,9 +38,7 @@ func Test_Register(t *testing.T) { ...@@ -38,9 +38,7 @@ func Test_Register(t *testing.T) {
url, _ := common.NewURL("dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", common.WithParamsValue(constant.CLUSTER_KEY, "mock"), common.WithParamsValue("serviceid", "soa.mock"), common.WithMethods([]string{"GetUser", "AddUser"})) url, _ := common.NewURL("dubbo://127.0.0.1:20000/com.ikurento.user.UserProvider", common.WithParamsValue(constant.CLUSTER_KEY, "mock"), common.WithParamsValue("serviceid", "soa.mock"), common.WithMethods([]string{"GetUser", "AddUser"}))
ts, reg, err := newMockZkRegistry(regURL) ts, reg, err := newMockZkRegistry(regURL)
if err != nil {
assert.NoError(t, err) assert.NoError(t, err)
}
defer func() { defer func() {
_ = ts.Stop() _ = ts.Stop()
}() }()
......
...@@ -168,7 +168,7 @@ func (c *Client) Close() { ...@@ -168,7 +168,7 @@ func (c *Client) Close() {
c.pool = nil c.pool = nil
c.mux.Unlock() c.mux.Unlock()
if p != nil { if p != nil {
c.Close() p.close()
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment