mirror of
https://github.com/redis/go-redis.git
synced 2025-09-05 20:24:00 +03:00
Update internal/pool/pool.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -386,7 +386,7 @@ func (p *ConnPool) getConn(ctx context.Context) (*Conn, error) {
|
|||||||
attempts := 0
|
attempts := 0
|
||||||
for {
|
for {
|
||||||
if attempts >= getAttempts {
|
if attempts >= getAttempts {
|
||||||
log.Printf("redis: connection pool: failed to get an connection accepted by hook after %d attempts", attempts)
|
log.Printf("redis: connection pool: failed to get a connection accepted by hook after %d attempts", attempts)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
attempts++
|
attempts++
|
||||||
|
Reference in New Issue
Block a user