diff --git a/go.mod b/go.mod index 54b39d322e83e05c4c54ffdf166dd4f0aa039249..a27fb6f4cac08ffc6e2767a53d88333846a71cf5 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f // indirect github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f // indirect github.com/creasty/defaults v1.3.0 - github.com/dubbogo/getty v1.3.2 + github.com/dubbogo/getty v1.3.3 github.com/dubbogo/go-zookeeper v1.0.0 github.com/dubbogo/gost v1.5.2 github.com/fastly/go-utils v0.0.0-20180712184237-d95a45783239 // indirect diff --git a/protocol/dubbo/pool.go b/protocol/dubbo/pool.go index 9e43dbcc193de3f3e3756f916b6284e3e4166619..918514c2676cfc69336a9f53e6d16d7f23cf7dca 100644 --- a/protocol/dubbo/pool.go +++ b/protocol/dubbo/pool.go @@ -319,9 +319,10 @@ func (p *gettyRPCClientPool) getGettyRpcClient(protocol, addr string) (*gettyRPC conn, err := p.get() if err == nil && conn == nil { // create new conn - return newGettyRPCClientConn(p, protocol, addr) + rpcClientConn, err := newGettyRPCClientConn(p, protocol, addr) + return rpcClientConn, perrors.WithStack(err) } - return conn, err + return conn, perrors.WithStack(err) } func (p *gettyRPCClientPool) get() (*gettyRPCClient, error) {