Skip to content

Commit

Permalink
linter: find inappropriate key in call to context.WithValue
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Jan 25, 2023
1 parent cf09b1e commit 49d62c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions executor/metrics_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (e *MetricRetriever) retrieve(ctx context.Context, sctx sessionctx.Context)
return totalRows, nil
}

// MockMetricsPromDataKey is for test
type MockMetricsPromDataKey struct{}

func (e *MetricRetriever) queryMetric(ctx context.Context, sctx sessionctx.Context, queryRange promv1.Range, quantile float64) (result pmodel.Value, err error) {
Expand Down

0 comments on commit 49d62c9

Please sign in to comment.