Skip to content

Commit

Permalink
Throttler: fix nil pointer dereference error (#15180)
Browse files Browse the repository at this point in the history
Signed-off-by: Shlomi Noach <[email protected]>
  • Loading branch information
shlomi-noach authored Feb 8, 2024
1 parent 91c9f4b commit d3b2593
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion go/vt/vttablet/tabletserver/throttle/throttler.go
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,6 @@ func (throttler *Throttler) generateTabletProbeFunction(ctx context.Context, clu
req := &tabletmanagerdatapb.CheckThrottlerRequest{} // We leave AppName empty; it will default to VitessName anyway, and we can save some proto space
resp, gRPCErr := tmClient.CheckThrottler(ctx, probe.Tablet, req)
if gRPCErr != nil {
resp.StatusCode = http.StatusInternalServerError
mySQLThrottleMetric.Err = fmt.Errorf("gRPC error accessing tablet %v. Err=%v", probe.Alias, gRPCErr)
return mySQLThrottleMetric
}
Expand Down

0 comments on commit d3b2593

Please sign in to comment.