Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion benchmarks/record/record.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
gm "github.com/onsi/gomega/gmeasure"
dto "github.com/prometheus/client_model/go"
"github.com/prometheus/common/expfmt"
"github.com/prometheus/common/model"

"github.com/rancher/fleet/e2e/testenv/kubectl"
"github.com/rancher/fleet/pkg/apis/fleet.cattle.io/v1alpha1"
Expand Down Expand Up @@ -234,7 +235,7 @@
pod := addRandomSuffix("curl")
var (
mfs map[string]*dto.MetricFamily
parser expfmt.TextParser
parser expfmt.TextParser = expfmt.NewTextParser(model.LegacyValidation)

Check failure on line 238 in benchmarks/record/record.go

View workflow job for this annotation

GitHub Actions / golangci-lint

ST1023: should omit type expfmt.TextParser from declaration; it will be inferred from the right-hand side (staticcheck)
)
Eventually(func() error {
GinkgoWriter.Print("Fetching metrics from " + url + "\n")
Expand Down
Loading