Skip to content

Commit

Permalink
Error from fingerprint matching is not a failure
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Feb 23, 2024
1 parent 7e49fa5 commit 850e240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/fpstore/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ func (s *FingerprintStoreService) compareFingerprints(ctx context.Context, query
}
score, err := chromaprint.CompareFingerprints(query, fp)
if err != nil {
logger.Err(err).Msg("failed to compare fingerprints")
return nil, status.Error(codes.Internal, "failed to compare fingerprints")
logger.Debug().Err(err).Msg("failed to compare fingerprints")
continue
}
if score >= minScore {
results = append(results, &pb.MatchingFingerprint{Id: id, Score: score})
Expand Down

0 comments on commit 850e240

Please sign in to comment.