Skip to content

Commit

Permalink
fixup! feat(provider-index): parallelize claim lookups
Browse files Browse the repository at this point in the history
  • Loading branch information
frrist committed Feb 12, 2025
1 parent 4342165 commit 494404f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/service/providerindex/providerindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ func (pi *ProviderIndexService) getProviderResults(ctx context.Context, mh mh.Mu
return pi.cacheResults(ctx, s, mh, legacyRes.results)
}

// Neither query returned data: return IPNI error if available.
// Neither query returned data: if error(s) is/are present join them and return as one wrapped error.
// NB(forrest): it is also acceptable to return no result and no error in the event nothing was found.
var queryError error
if ipniRes.err != nil {
queryError = errors.Join(queryError, fmt.Errorf("fetching from IPNI failed: %w", ipniRes.err))
Expand Down

0 comments on commit 494404f

Please # to comment.