From 94bd948aac8031d6c284bb60a29c1dbcf5c2aaea Mon Sep 17 00:00:00 2001 From: Gabe Conradi Date: Thu, 2 Aug 2018 17:07:23 -0400 Subject: [PATCH] fix timeout bug for etcd3 client connect --- storage/etcd/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/etcd/config.go b/storage/etcd/config.go index ad273968..85d88c49 100644 --- a/storage/etcd/config.go +++ b/storage/etcd/config.go @@ -42,7 +42,7 @@ func (p *Etcd) Open(logger logrus.FieldLogger) (storage.Storage, error) { func (p *Etcd) open(logger logrus.FieldLogger) (*conn, error) { cfg := clientv3.Config{ Endpoints: p.Endpoints, - DialTimeout: defaultDialTimeout * time.Second, + DialTimeout: defaultDialTimeout, Username: p.Username, Password: p.Password, }