From dd0444c5a7816acee29b1c9c22182ee2c6d32c9c Mon Sep 17 00:00:00 2001 From: Olga Shestopalova Date: Fri, 29 Sep 2023 15:55:12 -0400 Subject: [PATCH] rename warming reads pool variable and comment Signed-off-by: Olga Shestopalova --- go/vt/vtgate/engine/route.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go/vt/vtgate/engine/route.go b/go/vt/vtgate/engine/route.go index 669137c471a..1f806867b70 100644 --- a/go/vt/vtgate/engine/route.go +++ b/go/vt/vtgate/engine/route.go @@ -606,14 +606,14 @@ func (route *Route) executeWarmingReplicaRead(ctx context.Context, vcursor VCurs } replicaVCursor := vcursor.CloneForReplicaWarming(ctx) - pool := vcursor.GetWarmingReadsChannel() + warmingReadsChannel := vcursor.GetWarmingReadsChannel() select { - // if there's no more room in the pool, drop the warming read - case pool <- true: + // if there's no more room in the channel, drop the warming read + case warmingReadsChannel <- true: go func(replicaVCursor VCursor) { defer func() { - <-pool + <-warmingReadsChannel }() rss, _, err := route.findRoute(ctx, replicaVCursor, bindVars) if err != nil {