fix timeout bug for etcd3 client connect

This commit is contained in:
Gabe Conradi 2018-08-02 17:07:23 -04:00
parent 036e5d050d
commit 94bd948aac

View file

@ -42,7 +42,7 @@ func (p *Etcd) Open(logger logrus.FieldLogger) (storage.Storage, error) {
func (p *Etcd) open(logger logrus.FieldLogger) (*conn, error) { func (p *Etcd) open(logger logrus.FieldLogger) (*conn, error) {
cfg := clientv3.Config{ cfg := clientv3.Config{
Endpoints: p.Endpoints, Endpoints: p.Endpoints,
DialTimeout: defaultDialTimeout * time.Second, DialTimeout: defaultDialTimeout,
Username: p.Username, Username: p.Username,
Password: p.Password, Password: p.Password,
} }