1
0
mirror of https://github.com/redis/go-redis.git synced 2025-12-02 06:22:31 +03:00

chore: add a TODO comment because of code review feedback

This commit is contained in:
ccoVeille
2025-11-19 16:29:30 +01:00
parent 92148e72b1
commit 520b7abc6c

View File

@@ -487,6 +487,7 @@ func (hwm *handoffWorkerManager) closeConnFromRequest(ctx context.Context, reque
} else { } else {
err := conn.Close() // Close the connection if no pool provided err := conn.Close() // Close the connection if no pool provided
if err != nil { if err != nil {
// TODO(ndyakov): extract this error as well.
hwm.logger().Errorf(ctx, "redis: failed to close connection: %v", err) hwm.logger().Errorf(ctx, "redis: failed to close connection: %v", err)
} }
hwm.logger().Warnf(ctx, logs.NoPoolProvidedCannotRemove(conn.GetID())) hwm.logger().Warnf(ctx, logs.NoPoolProvidedCannotRemove(conn.GetID()))