mirror of
https://github.com/redis/go-redis.git
synced 2025-08-07 12:42:55 +03:00
Rework PubSub conn management
This commit is contained in:
@@ -704,7 +704,7 @@ func (c *ClusterClient) pipelineExec(cmds []Cmder) error {
|
||||
}
|
||||
|
||||
err = c.pipelineProcessCmds(cn, cmds, failedCmds)
|
||||
node.Client.putConn(cn, err, false)
|
||||
node.Client.putConn(cn, err)
|
||||
}
|
||||
|
||||
if len(failedCmds) == 0 {
|
||||
@@ -840,7 +840,7 @@ func (c *ClusterClient) txPipelineExec(cmds []Cmder) error {
|
||||
}
|
||||
|
||||
err = c.txPipelineProcessCmds(node, cn, cmds, failedCmds)
|
||||
node.Client.putConn(cn, err, false)
|
||||
node.Client.putConn(cn, err)
|
||||
}
|
||||
|
||||
if len(failedCmds) == 0 {
|
||||
|
Reference in New Issue
Block a user