Skip to content

Commit

Permalink
Discarding return object from formatter (#3671)
Browse files Browse the repository at this point in the history
Solving a lint generated issue
by discarding the return value of `s.logError`
fix [#3361]

Signed-off-by: Leonardo Zamariola <[email protected]>
  • Loading branch information
zamariola authored May 11, 2022
1 parent b597799 commit 34a4b07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/storage/cassandra/spanstore/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 34a4b07

Please sign in to comment.