1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-07 12:42:55 +03:00

Fix typo in ClusterClient.TxPipelined()

It should be using ClusterClient.TxPipeline() and not ClusterClient.Pipeline().
This commit is contained in:
Yuval Pavel Zholkover
2017-04-21 15:50:26 +03:00
parent 15786cf821
commit 8c21ec0006

View File

@@ -807,7 +807,7 @@ func (c *ClusterClient) TxPipeline() *Pipeline {
}
func (c *ClusterClient) TxPipelined(fn func(*Pipeline) error) ([]Cmder, error) {
return c.Pipeline().pipelined(fn)
return c.TxPipeline().pipelined(fn)
}
func (c *ClusterClient) txPipelineExec(cmds []Cmder) error {