forked from mirror/redis
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
|
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 {
|
||||||
|
|
Loading…
Reference in New Issue