mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Client TxPipeline method should also return a Pipeliner
This commit is contained in:
2
redis.go
2
redis.go
@ -342,7 +342,7 @@ func (c *Client) TxPipelined(fn func(Pipeliner) error) ([]Cmder, error) {
|
||||
}
|
||||
|
||||
// TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
|
||||
func (c *Client) TxPipeline() *Pipeline {
|
||||
func (c *Client) TxPipeline() Pipeliner {
|
||||
pipe := Pipeline{
|
||||
exec: c.pipelineExecer(c.txPipelineProcessCmds),
|
||||
}
|
||||
|
Reference in New Issue
Block a user