1
0
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:
Nedyalko Dyakov
2025-08-19 16:22:25 +03:00
committed by GitHub
parent fd98a22aa9
commit 1f8b660d11

View File

@@ -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++