mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Refactor Tx using Pipeline to implement Cmdable interface.
This commit is contained in:
@ -67,8 +67,8 @@ var _ = Describe("Client", func() {
|
||||
|
||||
It("should close Tx without closing the client", func() {
|
||||
err := client.Watch(func(tx *redis.Tx) error {
|
||||
_, err := tx.MultiExec(func() error {
|
||||
tx.Ping()
|
||||
_, err := tx.Pipelined(func(pipe *redis.Pipeline) error {
|
||||
pipe.Ping()
|
||||
return nil
|
||||
})
|
||||
return err
|
||||
|
Reference in New Issue
Block a user