mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Fix pool panic on slow connection with MaxRetries > 0.
This commit is contained in:
@ -90,7 +90,7 @@ func (c *sentinelClient) PubSub() *PubSub {
|
||||
return &PubSub{
|
||||
baseClient: &baseClient{
|
||||
opt: c.opt,
|
||||
connPool: newSingleConnPool(c.connPool, false),
|
||||
connPool: newStickyConnPool(c.connPool, false),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user