last comment

This commit is contained in:
Barak Michener 2014-10-09 13:16:45 -04:00
parent 5fde52a403
commit 5e7267a751

View File

@ -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) {