Skip to content
Snippets Groups Projects
Commit 1bbe0b49 authored by cvictory's avatar cvictory
Browse files

modify log

parent adb55ce8
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ type Request struct {
ID int64
// protocol version
Version string
// serial ID
// serial ID (ignore)
SerialID byte
// Data
Data interface{}
......
......@@ -154,7 +154,9 @@ func (c *Client) Connect(url common.URL) error {
c.codec = remoting.GetCodec(url.Protocol)
c.addr = url.Location
_, _, err := c.selectSession(c.addr)
logger.Errorf("try to connect server %v failed for : %v", url.Location, err)
if err != nil {
logger.Errorf("try to connect server %v failed for : %v", url.Location, err)
}
return err
}
......@@ -174,7 +176,7 @@ func (c *Client) Request(request *remoting.Request, timeout time.Duration, respo
// session getty.Session
// conn *gettyRPCClient
//)
conn, session, err := c.selectSession(c.addr)
_, session, err := c.selectSession(c.addr)
if err != nil {
return perrors.WithStack(err)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment