Browse Source

Merge pull request #6583 from sinsharat/windows_etcd3.0.1_etcdctlv2api_issue_fix

etcdctlv2: windows compatibility issue fix for etcd v3.0.1
Xiang Li 9 years ago
parent
commit
ac4d39cfb0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdctl/ctlv2/ctl.go

+ 1 - 1
etcdctl/ctlv2/ctl.go

@@ -47,7 +47,7 @@ func Start() {
 		cli.StringFlag{Name: "key-file", Value: "", Usage: "identify HTTPS client using this SSL key file"},
 		cli.StringFlag{Name: "ca-file", Value: "", Usage: "verify certificates of HTTPS-enabled servers using this CA bundle"},
 		cli.StringFlag{Name: "username, u", Value: "", Usage: "provide username[:password] and prompt if password is not supplied."},
-		cli.DurationFlag{Name: "timeout", Value: time.Second, Usage: "connection timeout per request"},
+		cli.DurationFlag{Name: "timeout", Value: 2 * time.Second, Usage: "connection timeout per request"},
 		cli.DurationFlag{Name: "total-timeout", Value: 5 * time.Second, Usage: "timeout for the command execution (except watch)"},
 	}
 	app.Commands = []cli.Command{