Browse Source

last comment

Barak Michener 11 years ago
parent
commit
5e7267a751
1 changed files with 1 additions and 6 deletions
  1. 1 6
      discovery/discovery_test.go

+ 1 - 6
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) {