From 4bfca3cd9fd259aa06ce0648531ae9426448b2fd Mon Sep 17 00:00:00 2001 From: Yuri Shkuro Date: Sun, 29 May 2022 16:08:55 -0400 Subject: [PATCH] fixes Signed-off-by: Yuri Shkuro --- cmd/collector/app/handler/otlp_receiver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/collector/app/handler/otlp_receiver.go b/cmd/collector/app/handler/otlp_receiver.go index 97b4faf954d..91fcfc0208f 100644 --- a/cmd/collector/app/handler/otlp_receiver.go +++ b/cmd/collector/app/handler/otlp_receiver.go @@ -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 } @@ -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 {