Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add job error to report index correction error status #2231

Merged
merged 11 commits into from
Nov 9, 2023
Prev Previous commit
Next Next commit
Removed unnecessary error handling
ykadowak committed Nov 8, 2023
commit d2a24970f6db25f5d39766a9f5bbf02a22019a43
6 changes: 1 addition & 5 deletions pkg/index/job/correction/service/corrector.go
Original file line number Diff line number Diff line change
@@ -91,11 +91,7 @@ func New(cfg *config.Data, discoverer discoverer.Client) (Corrector, error) {
}

func (c *correct) StartMonitoring(ctx context.Context) (<-chan error, error) {
dech, err := c.discoverer.Start(ctx)
if err != nil {
return nil, err
}
return dech, nil
return c.discoverer.Start(ctx)
}

func (c *correct) Start(ctx context.Context) error {