Skip to content

Commit

Permalink
Fix: Ensure results are rendered in report when there are failed shards
Browse files Browse the repository at this point in the history
  • Loading branch information
buddhike authored and Buddhike de Silva committed Mar 29, 2023
1 parent b1bde6d commit 6654b17
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions analyse/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ func (c *CMD) deregisterConsumer(streamArn, consumerArn *string) {

func (c *CMD) processShards(ctx context.Context, consumerArn string) ([]*service.ProcessOutput, error) {
var (
output []*service.ProcessOutput
bar *pb.ProgressBar
err error
shardIDs []string
)
if len(c.shardIDs) > 0 {
Expand All @@ -119,11 +117,7 @@ func (c *CMD) processShards(ctx context.Context, consumerArn string) ([]*service
bar = pb.StartNew(l)
}
defer bar.Finish()
output, err = c.processor.Process(ctx, consumerArn, shardIDs, len(c.shardIDs) == 0, func() { bar.Increment() })
if err != nil {
return nil, err
}
return output, nil
return c.processor.Process(ctx, consumerArn, shardIDs, len(c.shardIDs) == 0, func() { bar.Increment() })
}

type discover interface {
Expand Down

0 comments on commit 6654b17

Please sign in to comment.