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

@ -137,7 +137,7 @@ var _ = Describe("Redis Ring", func() {
keys = append(keys, string(key))
}
_, err := ring.Pipelined(func(pipe redis.Pipelineable) error {
_, err := ring.Pipelined(func(pipe redis.Pipeliner) error {
for _, key := range keys {
pipe.Set(key, "value", 0).Err()
}
@ -153,7 +153,7 @@ var _ = Describe("Redis Ring", func() {
})
It("supports hash tags", func() {
_, err := ring.Pipelined(func(pipe redis.Pipelineable) error {
_, err := ring.Pipelined(func(pipe redis.Pipeliner) error {
for i := 0; i < 100; i++ {
pipe.Set(fmt.Sprintf("key%d{tag}", i), "value", 0).Err()
}
@ -184,7 +184,7 @@ var _ = Describe("empty Redis Ring", func() {
})
It("pipeline returns an error", func() {
_, err := ring.Pipelined(func(pipe redis.Pipelineable) error {
_, err := ring.Pipelined(func(pipe redis.Pipeliner) error {
pipe.Ping()
return nil
})