This commit is contained in:
Vladimir Mihailenco 2012-08-06 11:00:29 +03:00
parent b36e10bf80
commit 4e6fa48b48
1 changed files with 1 additions and 3 deletions

View File

@ -165,7 +165,7 @@ func (c *Client) RunQueued() ([]Req, error) {
return nil, err return nil, err
} }
// c.ConnPool.Add(conn) c.ConnPool.Add(conn)
return reqs, nil return reqs, nil
} }
@ -174,7 +174,6 @@ func (c *Client) RunReqs(reqs []Req, conn *Conn) error {
if len(reqs) == 1 { if len(reqs) == 1 {
multiReq = reqs[0].Req() multiReq = reqs[0].Req()
} else { } else {
// TODO: split req to chunks
multiReq = make([]byte, 0, 1024) multiReq = make([]byte, 0, 1024)
for _, req := range reqs { for _, req := range reqs {
multiReq = append(multiReq, req.Req()...) multiReq = append(multiReq, req.Req()...)
@ -240,7 +239,6 @@ func (c *Client) Exec() ([]Req, error) {
} }
func (c *Client) ExecReqs(reqs []Req, conn *Conn) error { func (c *Client) ExecReqs(reqs []Req, conn *Conn) error {
// TODO: split req to chunks
multiReq := make([]byte, 0, 1024) multiReq := make([]byte, 0, 1024)
multiReq = append(multiReq, PackReq([]string{"MULTI"})...) multiReq = append(multiReq, PackReq([]string{"MULTI"})...)
for _, req := range reqs { for _, req := range reqs {