When err occurs, redis-client is closed, why still put those clients into the pool
**if err != nil {
for , client = range pool {
client.Close()
}
pool = pool[0:]
break
}
Is that you want to return an empty pool, should the code be as below
pool = pool[:0]**_
When err occurs, redis-client is closed, why still put those clients into the pool **if err != nil { for , client = range pool { client.Close() } pool = pool[0:] break } Is that you want to return an empty pool, should the code be as below pool = pool[:0]**_