mirror of https://github.com/go-redis/redis.git
Cleanup.
This commit is contained in:
parent
b36e10bf80
commit
4e6fa48b48
4
redis.go
4
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 {
|
||||
|
|
Loading…
Reference in New Issue