Skip to content
Snippets Groups Projects
Unverified Commit 41879daf authored by fangyincheng's avatar fangyincheng Committed by GitHub
Browse files

Merge pull request #600 from watermelo/feature/optCode

Mod: remove unuseful codes
parents 65f45b2d c0868a33
No related branches found
No related tags found
No related merge requests found
......@@ -319,9 +319,7 @@ func (p *gettyRPCClientPool) getGettyRpcClient(protocol, addr string) (*gettyRPC
conn, err := p.get()
if err == nil && conn == nil {
// create new conn
var rpcClientConn *gettyRPCClient
rpcClientConn, err = newGettyRPCClientConn(p, protocol, addr)
return rpcClientConn, perrors.WithStack(err)
conn, err = newGettyRPCClientConn(p, protocol, addr)
}
return conn, 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