Skip to content

Commit

Permalink
fix: deepsource warning
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <[email protected]>
  • Loading branch information
hlts2 committed Oct 31, 2023
1 parent c43d7c3 commit 381b0b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/index/job/creation/service/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func WithIndexingConcurrency(num int) Option {
}
}

// WithIndexingConcurrency returns Option that sets indexing pool size.
// WithCreationPoolSize returns Option that sets indexing pool size.
func WithCreationPoolSize(size uint32) Option {
return func(idx *index) error {
if size <= 0 {
Expand Down
7 changes: 5 additions & 2 deletions pkg/index/job/creation/usecase/creation.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ func New(cfg *config.Data) (_ runner.Runner, err error) {
}
}),
)
if err != nil {
return nil, err
}

var obs observability.Observability
if cfg.Observability.Enabled {
Expand Down Expand Up @@ -191,7 +194,7 @@ func (r *run) Start(ctx context.Context) (<-chan error, error) {
}

// PreStop is a method called before execution of Stop.
func (_ *run) PreStop(_ context.Context) error {
func (*run) PreStop(_ context.Context) error {
return nil
}

Expand All @@ -211,6 +214,6 @@ func (r *run) Stop(ctx context.Context) (errs error) {
}

// PtopStop is a method called after execution of Stop.
func (_ *run) PostStop(_ context.Context) error {
func (*run) PostStop(_ context.Context) error {
return nil
}

0 comments on commit 381b0b7

Please sign in to comment.