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

Fix pool panic on slow connection with MaxRetries > 0.

This commit is contained in:
Vladimir Mihailenco
2015-10-13 12:02:29 +03:00
parent 8ca66a53e6
commit 25164333ff
10 changed files with 112 additions and 39 deletions

View File

@ -29,7 +29,7 @@ func (c *Client) PubSub() *PubSub {
return &PubSub{
baseClient: &baseClient{
opt: c.opt,
connPool: newSingleConnPool(c.connPool, false),
connPool: newStickyConnPool(c.connPool, false),
},
}
}