Skip to content

Commit

Permalink
fix timeout bug for etcd3 client connect
Browse files Browse the repository at this point in the history
  • Loading branch information
byxorna committed Aug 2, 2018
1 parent 036e5d0 commit 94bd948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/etcd/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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,
}
Expand Down

0 comments on commit 94bd948

Please sign in to comment.