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

@ -50,7 +50,6 @@ func rmCommandFunc(c *cli.Context, ki client.KeysAPI) {
prevValue := c.String("with-value")
prevIndex := c.Int("with-index")
// TODO: handle transport timeout
resp, err := ki.Delete(context.TODO(), key, &client.DeleteOptions{PrevIndex: uint64(prevIndex), PrevValue: prevValue, Dir: dir, Recursive: recursive})
if err != nil {
handleError(ExitServerError, err)