mirror of
https://github.com/redis/go-redis.git
synced 2025-09-02 22:01:16 +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
|
||||
for {
|
||||
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
|
||||
}
|
||||
attempts++
|
||||
|
Reference in New Issue
Block a user