Browse Source

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

fix timeout bug for etcd3 client connect
pull/1184/merge
Stephan Renatus 8 years ago committed by GitHub
parent
commit
666356d22d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      storage/etcd/config.go

2
storage/etcd/config.go

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

Loading…
Cancel
Save