etcdctl: add per request timeout

This commit is contained in:
Xiang Li
2015-08-11 13:33:50 -07:00
parent 1fe52e1ec3
commit e36c499d0f
11 changed files with 5 additions and 11 deletions

View File

@ -40,7 +40,6 @@ func rmdirCommandFunc(c *cli.Context, ki client.KeysAPI) {
}
key := c.Args()[0]
// TODO: handle transport timeout
resp, err := ki.Delete(context.TODO(), key, &client.DeleteOptions{Dir: true})
if err != nil {
handleError(ExitServerError, err)