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

Move Publish channel to cmdable. Remove method that was deprecated in v3.

This commit is contained in:
Vladimir Mihailenco
2016-07-21 13:04:40 +00:00
parent eca5d02f24
commit 4210c090b1
5 changed files with 37 additions and 34 deletions

View File

@ -81,8 +81,8 @@ var _ = Describe("pool", func() {
connPool.(*pool.ConnPool).DialLimiter = nil
perform(1000, func(id int) {
pubsub := client.PubSub()
Expect(pubsub.Subscribe()).NotTo(HaveOccurred())
pubsub, err := client.Subscribe()
Expect(err).NotTo(HaveOccurred())
Expect(pubsub.Close()).NotTo(HaveOccurred())
})