mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Faster and simpler pool.
This commit is contained in:
@ -27,7 +27,7 @@ func (p *SingleConnPool) Put(cn *Conn) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *SingleConnPool) Replace(cn *Conn, _ error) error {
|
||||
func (p *SingleConnPool) Remove(cn *Conn, _ error) error {
|
||||
if p.cn != cn {
|
||||
panic("p.cn != cn")
|
||||
}
|
||||
|
Reference in New Issue
Block a user