mirror of
https://github.com/redis/go-redis.git
synced 2025-06-12 14:21:52 +03:00
Rework ReceiveMessage
This commit is contained in:
4
redis.go
4
redis.go
@ -423,7 +423,7 @@ func (c *Client) TxPipeline() Pipeliner {
|
||||
}
|
||||
|
||||
func (c *Client) pubSub() *PubSub {
|
||||
return &PubSub{
|
||||
pubsub := &PubSub{
|
||||
opt: c.opt,
|
||||
|
||||
newConn: func(channels []string) (*pool.Conn, error) {
|
||||
@ -431,6 +431,8 @@ func (c *Client) pubSub() *PubSub {
|
||||
},
|
||||
closeConn: c.connPool.CloseConn,
|
||||
}
|
||||
pubsub.init()
|
||||
return pubsub
|
||||
}
|
||||
|
||||
// Subscribe subscribes the client to the specified channels.
|
||||
|
Reference in New Issue
Block a user