You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2020/09/26 01:24:32 UTC

[dubbo-go] branch develop updated: Imp: take-off elastic timeout

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

alexstocks 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 de6f17b  Imp: take-off elastic timeout
de6f17b is described below

commit de6f17b2e990473f7d680018ac4b044b481cb289
Author: AlexStocks <al...@foxmail.com>
AuthorDate: Sat Sep 26 09:18:58 2020 +0800

    Imp: take-off elastic timeout
---
 remoting/getty/pool.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/remoting/getty/pool.go b/remoting/getty/pool.go
index 464cff9..813aacb 100644
--- a/remoting/getty/pool.go
+++ b/remoting/getty/pool.go
@@ -93,7 +93,7 @@ func newGettyRPCClientConn(pool *gettyRPCClientPool, addr string) (*gettyRPCClie
 			c.gettyClient.Close()
 			return nil, perrors.New(fmt.Sprintf("failed to create client connection to %s in %f seconds", addr, float32(times)/1000))
 		}
-		time.Sleep(1e6)
+		time.Sleep(time.Millisecond * time.Duration(times))
 	}
 	logger.Debug("client init ok")
 	c.updateActive(time.Now().Unix())