This is an automated email from the ASF dual-hosted git repository.

fangyc pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/develop by this push:
     new c0868a3  Mod: remove unuseful code at dubbo/pool.go
     new 41879da  Merge pull request #600 from watermelo/feature/optCode
c0868a3 is described below

commit c0868a33cad3313d09fbfce2f652d33bfc1c215f
Author: watermelo <80680...@qq.com>
AuthorDate: Thu Jun 11 16:41:35 2020 +0800

    Mod: remove unuseful code at dubbo/pool.go
---
 protocol/dubbo/pool.go | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/protocol/dubbo/pool.go b/protocol/dubbo/pool.go
index f0bd09b..c9f5e34 100644
--- a/protocol/dubbo/pool.go
+++ b/protocol/dubbo/pool.go
@@ -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)
 }

Reply via email to