1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

Fix Tx pipeline hook

This commit is contained in:
Vladimir Mihailenco
2021-01-09 09:27:42 +02:00
parent b543ea9e3a
commit 76fd0eac61
3 changed files with 10 additions and 5 deletions

View File

@ -477,6 +477,7 @@ func (p *ConnPool) ReapStaleConns() (int, error) {
p.connsMu.Lock()
cn := p.reapStaleConn()
p.connsMu.Unlock()
p.freeTurn()
if cn != nil {