forked from mystiq/dex
Merge pull request #1266 from byxorna/gabe/fix-etcd-timeout-bug
fix timeout bug for etcd3 client connect
This commit is contained in:
commit
666356d22d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue