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

rename Pipelineable to Pipeliner

This commit is contained in:
Felipe Cavalcanti
2017-05-02 12:00:53 -03:00
parent 6fca4d5ad0
commit eeb4d09198
16 changed files with 43 additions and 43 deletions

View File

@ -33,7 +33,7 @@ var _ = Describe("Tx", func() {
return err
}
_, err = tx.Pipelined(func(pipe redis.Pipelineable) error {
_, err = tx.Pipelined(func(pipe redis.Pipeliner) error {
pipe.Set(key, strconv.FormatInt(n+1, 10), 0)
return nil
})
@ -65,7 +65,7 @@ var _ = Describe("Tx", func() {
It("should discard", func() {
err := client.Watch(func(tx *redis.Tx) error {
cmds, err := tx.Pipelined(func(pipe redis.Pipelineable) error {
cmds, err := tx.Pipelined(func(pipe redis.Pipeliner) error {
pipe.Set("key1", "hello1", 0)
pipe.Discard()
pipe.Set("key2", "hello2", 0)
@ -88,7 +88,7 @@ var _ = Describe("Tx", func() {
It("returns an error when there are no commands", func() {
err := client.Watch(func(tx *redis.Tx) error {
_, err := tx.Pipelined(func(redis.Pipelineable) error { return nil })
_, err := tx.Pipelined(func(redis.Pipeliner) error { return nil })
return err
})
Expect(err).To(MatchError("redis: pipeline is empty"))
@ -102,7 +102,7 @@ var _ = Describe("Tx", func() {
const N = 20000
err := client.Watch(func(tx *redis.Tx) error {
cmds, err := tx.Pipelined(func(pipe redis.Pipelineable) error {
cmds, err := tx.Pipelined(func(pipe redis.Pipeliner) error {
for i := 0; i < N; i++ {
pipe.Incr("key")
}
@ -133,7 +133,7 @@ var _ = Describe("Tx", func() {
do := func() error {
err := client.Watch(func(tx *redis.Tx) error {
_, err := tx.Pipelined(func(pipe redis.Pipelineable) error {
_, err := tx.Pipelined(func(pipe redis.Pipeliner) error {
pipe.Ping()
return nil
})