fix some options
Some checks failed
lint / lint (pull_request) Failing after 1m29s
pr / test (pull_request) Failing after 2m39s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-08-15 07:55:26 +03:00
parent fdd1589122
commit bc55c2fa6f
3 changed files with 8 additions and 8 deletions

View File

@ -197,7 +197,7 @@ func NewWatchOptions(opts ...options.Option) WatchOptions {
} }
// Coalesce controls watch event combining // Coalesce controls watch event combining
func Coalesce(b bool) options.Option { func WatchCoalesce(b bool) options.Option {
return func(src interface{}) error { return func(src interface{}) error {
return options.Set(src, b, ".Coalesce") return options.Set(src, b, ".Coalesce")
} }

View File

@ -134,3 +134,10 @@ func Fallback(step string) options.Option {
return options.Set(src, step, ".Fallback") return options.Set(src, step, ".Fallback")
} }
} }
// ID sets the step ID
func StepID(id string) options.Option {
return func(src interface{}) error {
return options.Set(src, id, ".ID")
}
}

View File

@ -187,10 +187,3 @@ func Timeout(td time.Duration) Option {
return Set(src, td, ".Timeout") return Set(src, td, ".Timeout")
} }
} }
// ID sets the step ID
func StepID(id string) Option {
return func(src interface{}) error {
return Set(src, id, ".ID")
}
}