From 34a4b07c722014cabb7e6ef913ca75de7be1f3eb Mon Sep 17 00:00:00 2001 From: Leonardo Zamariola Date: Wed, 11 May 2022 13:58:11 -0300 Subject: [PATCH] Discarding return object from formatter (#3671) Solving a lint generated issue by discarding the return value of `s.logError` fix [#3361] Signed-off-by: Leonardo Zamariola --- plugin/storage/cassandra/spanstore/writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/storage/cassandra/spanstore/writer.go b/plugin/storage/cassandra/spanstore/writer.go index 33be3075823..13c3305b8e6 100644 --- a/plugin/storage/cassandra/spanstore/writer.go +++ b/plugin/storage/cassandra/spanstore/writer.go @@ -239,7 +239,7 @@ func (s *SpanWriter) indexByDuration(span *dbmodel.Span, startTime time.Time) er indexByOperationName := func(operationName string) { q1 := query.Bind(span.Process.ServiceName, operationName, timeBucket, span.Duration, span.StartTime, span.TraceID) if err2 := s.writerMetrics.durationIndex.Exec(q1, s.logger); err2 != nil { - s.logError(span, err2, "Cannot index duration", s.logger) + _ = s.logError(span, err2, "Cannot index duration", s.logger) err = err2 } }