Skip to content

Add a way to configure plan-preview handling #5916

@Warashi

Description

@Warashi

What would you like to be added:

The way to configure plan-preview handling behavior.

Why is this needed:

We have some options in the planpreview package, but they are not used or are only used in the tests.

func WithWorkerNum(n int) Option {
return func(opts *options) {
opts.workerNum = n
}
}
func WithCommandQueueBufferSize(s int) Option {
return func(opts *options) {
opts.commandQueueBufferSize = s
}
}
func WithCommandCheckInterval(i time.Duration) Option {
return func(opts *options) {
opts.commandCheckInterval = i
}
}
func WithCommandHandleTimeout(t time.Duration) Option {
return func(opts *options) {
opts.commandHandleTimeout = t
}
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions