mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Change Tx.Pipeline and Tx.TxPipeline meaning
This commit is contained in:
@ -79,7 +79,7 @@ var _ = Describe("Client", func() {
|
||||
|
||||
It("should close Tx without closing the client", 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
|
||||
})
|
||||
@ -286,7 +286,7 @@ var _ = Describe("Client 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
|
||||
})
|
||||
|
Reference in New Issue
Block a user