Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <[email protected]>
  • Loading branch information
yurishkuro committed May 29, 2022
1 parent 266ea87 commit 4bfca3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/collector/app/handler/otlp_receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ type consumerDelegate struct {
protoFromTraces func(td ptrace.Traces) ([]*model.Batch, error)
}

func (c *consumerDelegate) consume(_ context.Context, ld ptrace.Traces) error {
batches, err := c.protoFromTraces(ld)
func (c *consumerDelegate) consume(_ context.Context, td ptrace.Traces) error {
batches, err := c.protoFromTraces(td)
if err != nil {
return err
}
Expand All @@ -112,7 +112,7 @@ type otelHost struct {
func (h *otelHost) ReportFatalError(err error) {
h.logger.Fatal("OTLP receiver error", zap.Error(err))
}
func (*otelHost) GetFactory(kind component.Kind, componentType config.Type) component.Factory {
func (*otelHost) GetFactory(_ component.Kind, _ config.Type) component.Factory {
return nil
}
func (*otelHost) GetExtensions() map[config.ComponentID]component.Extension {
Expand Down

0 comments on commit 4bfca3c

Please sign in to comment.