1
0
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:
Vladimir Mihailenco
2020-01-12 14:19:21 +02:00
parent 08dad1eb7f
commit dd4ef4e9cb
8 changed files with 48 additions and 42 deletions

View File

@ -360,7 +360,7 @@ var _ = Describe("ClusterClient", func() {
return err
}
_, err = tx.Pipelined(func(pipe redis.Pipeliner) error {
_, err = tx.TxPipelined(func(pipe redis.Pipeliner) error {
pipe.Set(key, strconv.FormatInt(n+1, 10), 0)
return nil
})
@ -1009,7 +1009,7 @@ var _ = Describe("ClusterClient timeout", func() {
It("Tx Pipeline timeouts", func() {
err := client.Watch(func(tx *redis.Tx) error {
_, err := tx.Pipelined(func(pipe redis.Pipeliner) error {
_, err := tx.TxPipelined(func(pipe redis.Pipeliner) error {
pipe.Ping()
return nil
})