Skip to content

Avoid duplicating With[Start|Shutdown] in processorhelper #2788

@bogdandrutu

Description

@bogdandrutu

Rather than needing to duplicate every componenthelper.Option here, might it be better to have something like this:

func WithComponentOptions(opts componenthelper.Option...) Option {
  return func( o *baseSettings) {
    o.componentOptions = opts
  }
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions