mirror of
https://github.com/onyx-and-iris/xair-cli.git
synced 2026-04-09 02:13:35 +00:00
we no longer need to pass in the kind
remove option function WithKind
This commit is contained in:
@@ -4,13 +4,6 @@ import "time"
|
||||
|
||||
type Option func(*engine)
|
||||
|
||||
func WithKind(kind string) Option {
|
||||
return func(e *engine) {
|
||||
e.Kind = MixerKind(kind)
|
||||
e.addressMap = addressMapForMixerKind(e.Kind)
|
||||
}
|
||||
}
|
||||
|
||||
func WithTimeout(timeout time.Duration) Option {
|
||||
return func(e *engine) {
|
||||
e.timeout = timeout
|
||||
|
||||
Reference in New Issue
Block a user