mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
PubSub conns don't share connection pool limit
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
package redis
|
||||
|
||||
import (
|
||||
"net"
|
||||
"time"
|
||||
|
||||
"github.com/go-redis/redis/internal/pool"
|
||||
@ -10,8 +11,8 @@ func (c *baseClient) Pool() pool.Pooler {
|
||||
return c.connPool
|
||||
}
|
||||
|
||||
func (c *PubSub) Pool() pool.Pooler {
|
||||
return c.base.connPool
|
||||
func (c *PubSub) SetNetConn(netConn net.Conn) {
|
||||
c.cn = pool.NewConn(netConn)
|
||||
}
|
||||
|
||||
func (c *PubSub) ReceiveMessageTimeout(timeout time.Duration) (*Message, error) {
|
||||
|
Reference in New Issue
Block a user