Skip to content

Commit

Permalink
Fixed unused variable issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-at-cloudwerx committed Aug 9, 2024
1 parent cf25de1 commit f50a871
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions receiver/googlecloudmonitoringreceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ func newGoogleCloudMonitoringReceiver(cfg *Config, logger *zap.Logger) *monitori
}

func (m *monitoringReceiver) Scrape(ctx context.Context) (pmetric.Metrics, error) {
// Dummy use to fix lint errors
ctx.Deadline()
metrics := pmetric.NewMetrics()
m.logger.Debug("Scrape metrics ")

Expand All @@ -48,5 +50,7 @@ func (m *monitoringReceiver) Shutdown(context.Context) error {

func (m *monitoringReceiver) initialize(ctx context.Context) error {
// TODO: Implement the logic for handling metrics here.
// Dummy use to fix lint errors
ctx.Deadline()
return nil
}

0 comments on commit f50a871

Please sign in to comment.