mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl: add per request timeout
This commit is contained in:
@@ -51,7 +51,6 @@ func updateCommandFunc(c *cli.Context, ki client.KeysAPI) {
|
||||
|
||||
ttl := c.Int("ttl")
|
||||
|
||||
// TODO: handle transport timeout
|
||||
resp, err := ki.Set(context.TODO(), key, value, &client.SetOptions{TTL: time.Duration(ttl) * time.Second, PrevExist: client.PrevExist})
|
||||
if err != nil {
|
||||
handleError(ExitServerError, err)
|
||||
|
||||
Reference in New Issue
Block a user