mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Change Tx.Pipeline and Tx.TxPipeline meaning
This commit is contained in:
@ -314,7 +314,7 @@ func ExampleClient_Watch() {
|
||||
n++
|
||||
|
||||
// runs only if the watched keys remain unchanged
|
||||
_, err = tx.Pipelined(func(pipe redis.Pipeliner) error {
|
||||
_, err = tx.TxPipelined(func(pipe redis.Pipeliner) error {
|
||||
// pipe handles the error case
|
||||
pipe.Set(key, n, 0)
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user