Commit 94bd948a authored by Gabe Conradi's avatar Gabe Conradi

fix timeout bug for etcd3 client connect

parent 036e5d05
...@@ -42,7 +42,7 @@ func (p *Etcd) Open(logger logrus.FieldLogger) (storage.Storage, error) { ...@@ -42,7 +42,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,
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment