1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

pipeline now has its own interface "Pipelineable"

This commit is contained in:
Felipe Cavalcanti
2017-05-01 12:42:58 -03:00
parent 4c6e2ad9a0
commit 6fca4d5ad0
16 changed files with 70 additions and 42 deletions

View File

@ -22,7 +22,7 @@ var _ = Describe("pipelining", func() {
It("supports block style", func() {
var get *redis.StringCmd
cmds, err := client.Pipelined(func(pipe *redis.Pipeline) error {
cmds, err := client.Pipelined(func(pipe redis.Pipelineable) error {
get = pipe.Get("foo")
return nil
})
@ -63,7 +63,7 @@ var _ = Describe("pipelining", func() {
Describe("Pipeline", func() {
BeforeEach(func() {
pipe = client.Pipeline()
pipe = client.Pipeline().(*redis.Pipeline)
})
assertPipeline()