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) {
cfg := clientv3.Config{
Endpoints: p.Endpoints,
DialTimeout: defaultDialTimeout * time.Second,
DialTimeout: defaultDialTimeout,
Username: p.Username,
Password: p.Password,
}