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
@ -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,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user