Skip to content

Commit

Permalink
must
Browse files Browse the repository at this point in the history
Signed-off-by: Cari Albritton <[email protected]>
  • Loading branch information
calbritt committed Oct 24, 2024
1 parent dfb769a commit 908a20a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/metric/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ type MetricsRegistry interface {
// GetHTTPMetricsInstrumentationsMiddlewareForSubsystem returns the HTTP middleware of a subsystem that used predefined HTTP metrics
GetHTTPMetricsInstrumentationsMiddlewareForSubsystem(ctx context.Context, subsystem string) (func(next http.Handler) http.Handler, error)

RegisterCollector(ctx context.Context, collector prometheus.Collector)
MustRegisterCollector(ctx context.Context, collector prometheus.Collector)
}

type FireflyDefaultLabels struct {
Expand Down Expand Up @@ -188,6 +188,6 @@ func (pmr *prometheusMetricsRegistry) GetHTTPMetricsInstrumentationsMiddlewareFo
return httpInstrumentation.Middleware, nil
}

func (pmr *prometheusMetricsRegistry) RegisterCollector(ctx context.Context, collector prometheus.Collector) {
func (pmr *prometheusMetricsRegistry) MustRegisterCollector(ctx context.Context, collector prometheus.Collector) {

Check failure on line 191 in pkg/metric/metric.go

View workflow job for this annotation

GitHub Actions / build

unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
pmr.registerer.MustRegister(collector)
}

0 comments on commit 908a20a

Please sign in to comment.