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

Don't return an error when pipeline is empty

This commit is contained in:
Vladimir Mihailenco
2017-05-30 15:45:36 +03:00
parent ee42c3d5d3
commit f60bce9166
4 changed files with 9 additions and 8 deletions

View File

@ -344,6 +344,7 @@ var _ = Describe("Client OnConnect", func() {
BeforeEach(func() {
opt := redisOptions()
opt.DB = 0
opt.OnConnect = func(cn *redis.Conn) error {
return cn.ClientSetName("on_connect").Err()
}