mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
last comment
This commit is contained in:
parent
5fde52a403
commit
5e7267a751
@ -389,12 +389,7 @@ func (c *clientWithRetry) Create(key string, value string, ttl time.Duration) (*
|
||||
c.failCount++
|
||||
return nil, client.ErrTimeout
|
||||
}
|
||||
if len(c.rs) == 0 {
|
||||
return &client.Response{}, nil
|
||||
}
|
||||
r := c.rs[0]
|
||||
c.rs = c.rs[1:]
|
||||
return r, nil
|
||||
return c.clientWithResp.Create(key, value, ttl)
|
||||
}
|
||||
|
||||
func (c *clientWithRetry) Get(key string) (*client.Response, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user