Skip to content

Commit

Permalink
Merge pull request #64 from mathew-cf/fix-getChannelOrErrorParallel-e…
Browse files Browse the repository at this point in the history
…rrors
  • Loading branch information
ajnavarro authored Dec 2, 2022
2 parents 9a4b5a5 + e570450 commit 3c44e30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compparallel.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,11 +312,11 @@ func getChannelOrErrorParallel[T any](
select {
case err, ok := <-errCh:
if !ok {
return nil, routing.ErrNotFound
return outCh, routing.ErrNotFound
}
return nil, err
return outCh, err
case <-ctx.Done():
return nil, ctx.Err()
return outCh, ctx.Err()
default:
return outCh, nil
}
Expand Down

0 comments on commit 3c44e30

Please sign in to comment.