Merge pull request #1266 from byxorna/gabe/fix-etcd-timeout-bug

fix timeout bug for etcd3 client connect
This commit is contained in:
Stephan Renatus 2018-09-10 10:36:38 +02:00 committed by GitHub
commit 666356d22d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,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,
} }