fix timeout bug for etcd3 client connect
This commit is contained in:
parent
036e5d050d
commit
94bd948aac
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue