mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
multi: fix recovering from bad connection.
This commit is contained in:
@ -88,7 +88,7 @@ func (pipe *Pipeline) Exec() (cmds []Cmder, retErr error) {
|
||||
|
||||
failedCmds := cmds
|
||||
for i := 0; i <= pipe.client.opt.MaxRetries; i++ {
|
||||
cn, err := pipe.client.conn()
|
||||
cn, _, err := pipe.client.conn()
|
||||
if err != nil {
|
||||
setCmdsErr(failedCmds, err)
|
||||
return cmds, err
|
||||
|
Reference in New Issue
Block a user