From 5e7267a751dbd7567a8b05071a1345405cfacca9 Mon Sep 17 00:00:00 2001 From: Barak Michener Date: Thu, 9 Oct 2014 13:16:45 -0400 Subject: [PATCH] last comment --- discovery/discovery_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/discovery/discovery_test.go b/discovery/discovery_test.go index 0f43304fa..bbcc84137 100644 --- a/discovery/discovery_test.go +++ b/discovery/discovery_test.go @@ -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) {