Skip to content

Commit

Permalink
whatever
Browse files Browse the repository at this point in the history
  • Loading branch information
cristaloleg committed Nov 14, 2024
1 parent a4cd371 commit 87227cd
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions share/availability/light/availability.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,10 @@ func (la *ShareAvailability) SharesAvailable(ctx context.Context, header *header
}

smpls, err := la.getter.GetSamples(ctx, header, idxs)
if err != nil {
if errors.Is(err, context.Canceled) {
// Availability did not complete due to context cancellation, return context error instead of
// share.ErrNotAvailable
return context.Canceled
}
return err
if errors.Is(err, context.Canceled) {
// Availability did not complete due to context cancellation, return context error instead of
// share.ErrNotAvailable
return context.Canceled
}
if len(smpls) == 0 {
return share.ErrNotAvailable
Expand Down

0 comments on commit 87227cd

Please sign in to comment.