Skip to content

Commit

Permalink
fixed types
Browse files Browse the repository at this point in the history
  • Loading branch information
amircybersec committed Nov 27, 2023
1 parent ad23b7a commit ebb9a59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x/report/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ func (c *RetryCollector) Collect(ctx context.Context, report Report) error {
return errors.New("max retry exceeded")
}

// MutltiCollector represents a collector that combines multiple collectors.
type MutltiCollector struct {
// MultiCollector represents a collector that combines multiple collectors.
type MultiCollector struct {
collectors []Collector
}

// Collect implements Collector interface on [MutltiCollector] type.
// Collect implements [Collector] interface on [MultiCollector] type.
// It collects the report using all the provided collectors in the [MultiCollector].
// It returns an error if all collectors fail to collect the report.
func (c *MutltiCollector) Collect(ctx context.Context, report Report) error {
func (c *MultiCollector) Collect(ctx context.Context, report Report) error {
success := false
for i := range c.collectors {
err := c.collectors[i].Collect(ctx, report)
Expand Down

0 comments on commit ebb9a59

Please sign in to comment.