Skip to content

Commit

Permalink
Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mfoldenyi committed Dec 23, 2024
1 parent 09cf97a commit b14bf1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/block/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ func (f *ConcurrentLister) GetActiveAndPartialBlockIDs(ctx context.Context, ch c
}
close(metaChan)

multiError = multierror.Append(eg.Wait(), multiError)
multiError = multierror.Append(multiError, eg.Wait())

if multiError != nil {
if multiErrorUnwrap, ok := err.(interface{ Unwrap() []error }); ok {
Expand All @@ -304,6 +304,9 @@ func (f *ConcurrentLister) GetActiveAndPartialBlockIDs(ctx context.Context, ch c
if len(errs) > 0 {
return nil, errs[0]
}
} else {
// if this occurs hashicorp/go-multierror may have been upgraded to a not backward compatible version
panic("BUG: multierr doesn't implement unwrap")
}
}

Expand Down

0 comments on commit b14bf1c

Please sign in to comment.