etcdctl: add per request timeout
This commit is contained in:
@ -51,7 +51,6 @@ func updatedirCommandFunc(c *cli.Context, ki client.KeysAPI) {
|
||||
|
||||
ttl := c.Int("ttl")
|
||||
|
||||
// TODO: handle transport timeout
|
||||
_, err = ki.Set(context.TODO(), key, value, &client.SetOptions{TTL: time.Duration(ttl) * time.Second, Dir: true, PrevExist: client.PrevExist})
|
||||
if err != nil {
|
||||
handleError(ExitServerError, err)
|
||||
|
Reference in New Issue
Block a user