From 4e6fa48b48e2ecb73a9f9cd8e4ec0247db68aa78 Mon Sep 17 00:00:00 2001 From: Vladimir Mihailenco Date: Mon, 6 Aug 2012 11:00:29 +0300 Subject: [PATCH] Cleanup. --- redis.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/redis.go b/redis.go index ebf1a27f..5bf75338 100644 --- a/redis.go +++ b/redis.go @@ -165,7 +165,7 @@ func (c *Client) RunQueued() ([]Req, error) { return nil, err } - // c.ConnPool.Add(conn) + c.ConnPool.Add(conn) return reqs, nil } @@ -174,7 +174,6 @@ func (c *Client) RunReqs(reqs []Req, conn *Conn) error { if len(reqs) == 1 { multiReq = reqs[0].Req() } else { - // TODO: split req to chunks multiReq = make([]byte, 0, 1024) for _, req := range reqs { multiReq = append(multiReq, req.Req()...) @@ -240,7 +239,6 @@ func (c *Client) Exec() ([]Req, error) { } func (c *Client) ExecReqs(reqs []Req, conn *Conn) error { - // TODO: split req to chunks multiReq := make([]byte, 0, 1024) multiReq = append(multiReq, PackReq([]string{"MULTI"})...) for _, req := range reqs {